File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ option(YAML_CPP_INSTALL "Enable generation of yaml-cpp install targets" ${YAML_C
2828option (YAML_CPP_FORMAT_SOURCE "Format source" ${YAML_CPP_MAIN_PROJECT} )
2929option (YAML_CPP_DISABLE_UNINSTALL "Disable uninstallation of yaml-cpp" OFF )
3030option (YAML_USE_SYSTEM_GTEST "Use system googletest if found" OFF )
31+ option (YAML_ENABLE_PIC "Use Position-Independent Code " ON )
3132
3233cmake_dependent_option(YAML_CPP_BUILD_TESTS
3334 "Enable yaml-cpp tests" OFF
@@ -91,9 +92,7 @@ set_property(TARGET yaml-cpp
9192 CXX_STANDARD_REQUIRED ON )
9293
9394if (NOT YAML_BUILD_SHARED_LIBS)
94- if (NOT PSP AND NOT PS3)
95- set_property (TARGET yaml-cpp PROPERTY POSITION_INDEPENDENT_CODE ON )
96- endif ()
95+ set_property (TARGET yaml-cpp PROPERTY POSITION_INDEPENDENT_CODE ${YAML_ENABLE_PIC} )
9796endif ()
9897
9998target_include_directories (yaml-cpp
You can’t perform that action at this time.
0 commit comments