Skip to content

Commit

Permalink
Improve Visual Studio build check for newer versions (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
ximinez authored Feb 23, 2023
1 parent 85aa8a7 commit c640d03
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Builds/CMake/KeysSanity.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,8 @@ if ("${CMAKE_CURRENT_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
"directory from ${CMAKE_CURRENT_SOURCE_DIR} and try building in a separate directory.")
endif ()

if ("${CMAKE_GENERATOR}" MATCHES "Visual Studio" AND
NOT ("${CMAKE_GENERATOR}" MATCHES .*Win64.*))
message (FATAL_ERROR
"Visual Studio 32-bit build is not supported. Use -G\"${CMAKE_GENERATOR} Win64\"")
if (MSVC AND CMAKE_GENERATOR_PLATFORM STREQUAL "Win32")
message (FATAL_ERROR "Visual Studio 32-bit build is not supported.")
endif ()

if (NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
Expand Down

0 comments on commit c640d03

Please sign in to comment.