Repository: geode-native Updated Branches: refs/heads/develop 24783d4df -> 8d1a30049
GEODE-2741: Adding a warning for 64bit Windows Tools sets - Need to include -Thost=x64 in the configuration step Project: http://git-wip-us.apache.org/repos/asf/geode-native/repo Commit: http://git-wip-us.apache.org/repos/asf/geode-native/commit/8d1a3004 Tree: http://git-wip-us.apache.org/repos/asf/geode-native/tree/8d1a3004 Diff: http://git-wip-us.apache.org/repos/asf/geode-native/diff/8d1a3004 Branch: refs/heads/develop Commit: 8d1a300494261853939f255b422d6b2c59dcc942 Parents: 24783d4 Author: Mark Hanson <[email protected]> Authored: Fri Jun 9 14:09:59 2017 -0700 Committer: Ernest Burghardt <[email protected]> Committed: Fri Jun 9 15:36:40 2017 -0700 ---------------------------------------------------------------------- src/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/geode-native/blob/8d1a3004/src/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 157325f..8178ebf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,6 +17,15 @@ 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" + " 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.") + endif() +endif() + set(BUILD_BITS 64 CACHE STRING "Build for 64 (default) or 32 bit.") set(PRODUCT_VENDOR "Apache" CACHE STRING "Product vendor")
