- attempt to build PIC code by default

This commit is contained in:
Dmytro Bogovych 2025-09-14 08:01:42 +03:00
parent 104de3257b
commit 2ee179c6b1
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ option(YAML_CPP_BUILD_TESTS "Enable yaml-cpp tests"
option(YAML_CPP_INSTALL "Enable generation of yaml-cpp install targets" OFF)
option(YAML_MSVC_SHARED_RT "MSVC: Build yaml-cpp with shared runtime libs (/MD)" OFF)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
set(yaml-cpp-type STATIC)
set(yaml-cpp-label-postfix "static")
if (YAML_BUILD_SHARED_LIBS)