Skip to content

Commit

Permalink
issue fatal error on windows if not using a 64bit platform
Browse files Browse the repository at this point in the history
Current downloaded variables are 64-bit.
  • Loading branch information
Kris Thielemans committed Jul 2, 2017
1 parent 2560923 commit f78ca41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion SuperBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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" )
Expand Down

0 comments on commit f78ca41

Please sign in to comment.