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

24 lines
827 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 d43fc1d..d6a3992 100644
2020-10-14 06:02:41 +08:00
--- a/cpr/CMakeLists.txt
+++ b/cpr/CMakeLists.txt
@@ -29,6 +29,10 @@ set_target_properties(cpr
PROPERTIES
2020-10-14 06:02:41 +08:00
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)
+endif()
# Import GNU common install directory variables
include(GNUInstallDirs)
@@ -37,6 +41,7 @@ if(CPR_FORCE_USE_SYSTEM_CURL)
install(TARGETS cpr
EXPORT cprTargets
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
# Include CMake helpers for package config files