From 6c2dff551a8650256f481e65d9dc5529026f09eb Mon Sep 17 00:00:00 2001 From: Mark Hanson Date: Fri, 7 Jul 2017 15:31:13 -0700 Subject: [PATCH] GEODE-2741: Adding a warning for 64bit Windows Tools sets -Putting in an actual error to stop parsing vs the warning.... --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index abb7a65925..422efc0a6a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,8 +18,9 @@ project(nativeclient) list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) if(CMAKE_GENERATOR MATCHES Win64*) + if ((CMAKE_GENERATOR MATCHES "Visual Studio") AND (CMAKE_GENERATOR_TOOLSET STREQUAL "")) - message(WARNING "GEODE expects that a user must provode -Thost=x64 if you are using a" + message(FATAL_ERROR "GEODE expects that a user must provide -Thost=x64 if you are using a" " 64-bit toolset, otherwise you may get a linker error when DLLs are larger" " than 2GB saying \"Unable to open file apache-geode-static.dll.\" This is due" " to the 32bit toolset being used by default.")