2020-10-14 06:02:41 +08:00
|
|
|
diff --git a/cpr/CMakeLists.txt b/cpr/CMakeLists.txt
|
2021-12-07 12:21:05 +08:00
|
|
|
index d43fc1d..d6a3992 100644
|
2020-10-14 06:02:41 +08:00
|
|
|
--- a/cpr/CMakeLists.txt
|
|
|
|
+++ b/cpr/CMakeLists.txt
|
2021-12-07 12:21:05 +08:00
|
|
|
@@ -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})
|
2021-12-07 12:21:05 +08:00
|
|
|
+
|
2020-10-14 06:02:41 +08:00
|
|
|
+if (NOT DISABLE_INSTALL_HEADERS)
|
|
|
|
+ install(DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/../include/cpr DESTINATION include)
|
|
|
|
+endif()
|
2021-12-07 12:21:05 +08:00
|
|
|
|
|
|
|
# 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
|