Skip to content

Commit 669af4e

Browse files
Make YAML_MSVC_SHARED_RT depend on "CMAKE_SYSTEM_NAME MATCHES Windows" instead of "MSVC".
Fixes issue #1053.
1 parent edadfec commit 669af4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ cmake_dependent_option(YAML_CPP_INSTALL
2929
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF)
3030
cmake_dependent_option(YAML_MSVC_SHARED_RT
3131
"MSVC: Build yaml-cpp with shared runtime libs (/MD)" ON
32-
"MSVC" OFF)
32+
"CMAKE_SYSTEM_NAME MATCHES Windows" OFF)
3333

3434
if (YAML_BUILD_SHARED_LIBS)
3535
set(yaml-cpp-type SHARED)

0 commit comments

Comments
 (0)