vcpkg/ports/cpr/001-cpr-config.patch

16 lines
481 B
Diff
Raw Normal View History

2020-10-14 06:02:41 +08:00
diff --git a/cpr/CMakeLists.txt b/cpr/CMakeLists.txt
index 52787f5..aa3687d 100644
2020-10-14 06:02:41 +08:00
--- a/cpr/CMakeLists.txt
+++ b/cpr/CMakeLists.txt
@@ -46,6 +46,10 @@ set_target_properties(cpr
VERSION ${${PROJECT_NAME}_VERSION}
SOVERSION ${${PROJECT_NAME}_VERSION_MAJOR})
2020-10-14 06:02:41 +08:00
+if (NOT DISABLE_INSTALL_HEADERS)
+ install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../include/cpr DESTINATION include)
2020-10-14 06:02:41 +08:00
+endif()
+
# Import GNU common install directory variables
include(GNUInstallDirs)