diff --git a/CMakeLists.txt b/CMakeLists.txt index a5fd689ed..634944906 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,7 @@ endif() # define an option for choosing between static and dynamic C runtime (Windows only) if(WINDOWS) - set(STATIC_STD_LIBS TRUE CACHE BOOL "TRUE to statically link to the standard libraries, FALSE to use them as DLLs") + set(STATIC_STD_LIBS FALSE CACHE BOOL "TRUE to statically link to the standard libraries, FALSE to use them as DLLs") # for VC++, we can apply it globally by modifying the compiler flags if(COMPILER_MSVC AND STATIC_STD_LIBS) diff --git a/bindings/c/CMakeLists.txt b/bindings/c/CMakeLists.txt index 0a13afb78..db4f9e17f 100644 --- a/bindings/c/CMakeLists.txt +++ b/bindings/c/CMakeLists.txt @@ -32,7 +32,7 @@ set(CMAKE_SKIP_BUILD_RPATH TRUE) # define an option for choosing between static and dynamic C runtime (Windows only) if(WINDOWS) - set(STATIC_STD_LIBS TRUE CACHE BOOL "TRUE to statically link to the standard libraries, FALSE to use them as DLLs") + set(STATIC_STD_LIBS FALSE CACHE BOOL "TRUE to statically link to the standard libraries, FALSE to use them as DLLs") # for VC++, we can apply it globally by modifying the compiler flags if(COMPILER_MSVC AND STATIC_STD_LIBS)