vcpkg/ports/yaml-cpp/0003-cxx-std-features.patch

17 lines
441 B
Diff
Raw Normal View History

2019-09-17 00:08:41 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c4d4be1..174264d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -279,6 +279,11 @@ set_target_properties(yaml-cpp PROPERTIES
COMPILE_FLAGS "${yaml_c_flags} ${yaml_cxx_flags}"
)
+target_compile_features(yaml-cpp
+ PUBLIC
+ cxx_std_11
+)
+
set_target_properties(yaml-cpp PROPERTIES
VERSION "${YAML_CPP_VERSION}"
SOVERSION "${YAML_CPP_VERSION_MAJOR}.${YAML_CPP_VERSION_MINOR}"