vcpkg/ports/yomm2/fix_install.patch

26 lines
808 B
Diff
Raw Normal View History

2021-05-27 01:33:43 +08:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9c5e446..f550c2d 100644
2021-05-27 01:33:43 +08:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -76,7 +76,6 @@
COMMAND ${CMAKE_SOURCE_DIR}/dev/code2md "${readme_cpp}" "${readme_md}"
DEPENDS "${readme_cpp}")
endif()
2021-05-27 01:33:43 +08:00
-add_subdirectory(docs.in)
2021-05-27 01:33:43 +08:00
## Install instruction
# Create version file for cmake package
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9c5e446..f550c2d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -25,2 +25,3 @@
target_link_libraries(yomm2 PUBLIC Boost::headers)
+ target_compile_features(yomm2 PUBLIC cxx_std_17)
if (${YOMM2_CHECK_ABI_COMPATIBILITY})
@@ -44,2 +44,3 @@
target_link_libraries(yomm2 INTERFACE Boost::headers)
+ target_compile_features(yomm2 INTERFACE cxx_std_17)
endif()