Переглянути джерело

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.

Author: Andrew Schwartzmeyer <andrew@schwartzmeyer.com>

Reviewers: Michael Han <hanm@apache.org>

Closes #485 from andschwa/ZOOKEEPER-2997
Andrew Schwartzmeyer 7 роки тому
батько
коміт
13c9f899ff
1 змінених файлів з 0 додано та 5 видалено
  1. 0 5
      src/c/CMakeLists.txt

+ 0 - 5
src/c/CMakeLists.txt

@@ -39,11 +39,6 @@ add_definitions(-DUSE_STATIC_LIB)
 option(WANT_SYNCAPI "Enables Sync API support" ON)
 option(WANT_SYNCAPI "Enables Sync API support" ON)
 if(WANT_SYNCAPI)
 if(WANT_SYNCAPI)
   add_definitions(-DTHREADED)
   add_definitions(-DTHREADED)
-  if(WIN32)
-    # Note that the generator expression ensures that `/MTd` is used when Debug
-    # configurations are built.
-    add_compile_options(/MT$<$<CONFIG:Debug>:d>)
-  endif()
 endif()
 endif()
 
 
 # CppUnit option
 # CppUnit option