From f78ca4141402567a03d1815b298a5263f4a56c0d Mon Sep 17 00:00:00 2001 From: Kris Thielemans Date: Sun, 2 Jul 2017 16:51:37 +0100 Subject: [PATCH] issue fatal error on windows if not using a 64bit platform Current downloaded variables are 64-bit. --- SuperBuild.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SuperBuild.cmake b/SuperBuild.cmake index 92e979f..d70c92a 100644 --- a/SuperBuild.cmake +++ b/SuperBuild.cmake @@ -18,7 +18,11 @@ # limitations under the License. # #========================================================================= - +if (WIN32) + if(NOT "x_${CMAKE_GENERATOR_PLATFORM}" STREQUAL "x_x64") + message( FATAL_ERROR "The SuperBuild currently has Win64 hard-wired for dependent libraries. Please use a Win64 generator") + endif() +endif() set( SOURCE_DOWNLOAD_CACHE ${CMAKE_CURRENT_BINARY_DIR} CACHE PATH "The path for downloading external source directories" )