diff options
Diffstat (limited to 'vcpkg/ports/jsonnet/0006-use-cxx17.patch')
| -rw-r--r-- | vcpkg/ports/jsonnet/0006-use-cxx17.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vcpkg/ports/jsonnet/0006-use-cxx17.patch b/vcpkg/ports/jsonnet/0006-use-cxx17.patch new file mode 100644 index 0000000..84791ef --- /dev/null +++ b/vcpkg/ports/jsonnet/0006-use-cxx17.patch @@ -0,0 +1,20 @@ +diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt +index 8116ac3..25cebd0 100644 +--- a/core/CMakeLists.txt ++++ b/core/CMakeLists.txt +@@ -36,6 +36,7 @@ if (BUILD_SHARED_BINARIES) + add_library(libjsonnet ${LIBJSONNET_HEADERS} ${LIBJSONNET_SOURCE}) + add_dependencies(libjsonnet stdlib) + target_link_libraries(libjsonnet nlohmann_json::nlohmann_json ryml) ++target_compile_features(libjsonnet PRIVATE cxx_std_17) + + file(STRINGS ${CMAKE_CURRENT_SOURCE_DIR}/../include/libjsonnet.h JSONNET_VERSION_DEF + REGEX "[#]define[ \t]+LIB_JSONNET_VERSION[ \t]+") +@@ -63,6 +64,7 @@ if (BUILD_STATIC_LIBS) + add_library(libjsonnet_static STATIC ${LIBJSONNET_SOURCE}) + add_dependencies(libjsonnet_static stdlib) + target_link_libraries(libjsonnet_static nlohmann_json::nlohmann_json ryml) ++ target_compile_features(libjsonnet_static PRIVATE cxx_std_17) + set_target_properties(libjsonnet_static PROPERTIES OUTPUT_NAME jsonnet) + install(TARGETS libjsonnet_static DESTINATION "${CMAKE_INSTALL_LIBDIR}") + target_include_directories(libjsonnet_static INTERFACE |