aboutsummaryrefslogtreecommitdiff
path: root/ports/yaml-cpp
diff options
context:
space:
mode:
authorMACHIZAUD Andréa <andrea.machizaud@gmail.com>2019-09-16 18:08:41 +0200
committerCurtis J Bezault <curtbezault@gmail.com>2019-09-16 09:08:41 -0700
commitf152ba3cc08787c5bc2e638a73753048f0678def (patch)
treeced4bb57681b6128567240dc333c324aa4734d61 /ports/yaml-cpp
parent8a44d47f76e01b787ebb1fc71dfe36909fdd1793 (diff)
downloadvcpkg-f152ba3cc08787c5bc2e638a73753048f0678def.tar.gz
vcpkg-f152ba3cc08787c5bc2e638a73753048f0678def.zip
OCIO 1.1.1 port added (#8006)
Diffstat (limited to 'ports/yaml-cpp')
-rw-r--r--ports/yaml-cpp/0003-cxx-std-features.patch16
-rw-r--r--ports/yaml-cpp/portfile.cmake1
2 files changed, 17 insertions, 0 deletions
diff --git a/ports/yaml-cpp/0003-cxx-std-features.patch b/ports/yaml-cpp/0003-cxx-std-features.patch
new file mode 100644
index 000000000..ac09c86c1
--- /dev/null
+++ b/ports/yaml-cpp/0003-cxx-std-features.patch
@@ -0,0 +1,16 @@
+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}"
diff --git a/ports/yaml-cpp/portfile.cmake b/ports/yaml-cpp/portfile.cmake
index ff2892bde..380f65aee 100644
--- a/ports/yaml-cpp/portfile.cmake
+++ b/ports/yaml-cpp/portfile.cmake
@@ -8,6 +8,7 @@ vcpkg_from_github(
PATCHES
0001-noexcept.patch
0002-fix-include-path.patch
+ 0003-cxx-std-features.patch
)
vcpkg_configure_cmake(