From 45a997ad0e281d967460f4eb205a4b18e4219ecd Mon Sep 17 00:00:00 2001 From: Andrew Schwartzmeyer Date: Fri, 9 Mar 2018 13:00:48 -0800 Subject: [PATCH] ZOOKEEPER-2997: CMake should not force static CRT linking By removing this code, CMake will use its own defaults for the CRT flags (e.g., `/MDd` for debug configurations). With it removed, the user can override this behavior by setting the `CMAKE_CXX_FLAGS` manually when configuring ZooKeeper. --- src/c/CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/c/CMakeLists.txt b/src/c/CMakeLists.txt index a194c8eb69c..5884492a892 100644 --- a/src/c/CMakeLists.txt +++ b/src/c/CMakeLists.txt @@ -39,11 +39,6 @@ add_definitions(-DUSE_STATIC_LIB) option(WANT_SYNCAPI "Enables Sync API support" ON) if(WANT_SYNCAPI) add_definitions(-DTHREADED) - if(WIN32) - # Note that the generator expression ensures that `/MTd` is used when Debug - # configurations are built. - add_compile_options(/MT$<$:d>) - endif() endif() # CppUnit option