Fix issue #1053 by making YAML_MSVC_SHARED_RT...

...depend on "CMAKE_SYSTEM_NAME MATCHES Windows" instead of "MSVC".
This commit is contained in:
Michael Martz 2022-03-30 23:47:58 -07:00
parent edadfecdc6
commit 12454efd9e

View File

@ -29,7 +29,7 @@ cmake_dependent_option(YAML_CPP_INSTALL
"CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR" OFF)
cmake_dependent_option(YAML_MSVC_SHARED_RT
"MSVC: Build yaml-cpp with shared runtime libs (/MD)" ON
"MSVC" OFF)
"CMAKE_SYSTEM_NAME MATCHES Windows" OFF)
if (YAML_BUILD_SHARED_LIBS)
set(yaml-cpp-type SHARED)