From 87d06a25717d05578277a6c84467847111a71256 Mon Sep 17 00:00:00 2001 From: greg7mdp Date: Thu, 21 Apr 2022 17:22:01 -0400 Subject: [PATCH] Check triggers cmake error unnecessarily --- Builds/CMake/RippledSanity.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Builds/CMake/RippledSanity.cmake b/Builds/CMake/RippledSanity.cmake index 4aaa2e5f8d..9e7fd113af 100644 --- a/Builds/CMake/RippledSanity.cmake +++ b/Builds/CMake/RippledSanity.cmake @@ -72,10 +72,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)