mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 04:10:27 +08:00
62744550b9
The port used to install "include/cpr" instead of "cpr" into the vcpkg include folder . As a result, attempting to use the cpr header would fail as the header includes "cpr/<header file>". In addition having to include <include/cpr/cpr.h> breaks the general vcpkg conventions.
18 lines
541 B
Diff
18 lines
541 B
Diff
diff --git a/cpr/CMakeLists.txt b/cpr/CMakeLists.txt
|
|
index a6db5bd..b4982d1 100644
|
|
--- a/cpr/CMakeLists.txt
|
|
+++ b/cpr/CMakeLists.txt
|
|
@@ -45,3 +45,12 @@ add_library(${CPR_LIBRARIES}
|
|
message(STATUS "Using CURL_LIBRARIES: ${CURL_LIBRARIES}.")
|
|
target_link_libraries(${CPR_LIBRARIES}
|
|
${CURL_LIBRARIES})
|
|
+
|
|
+install(TARGETS ${CPR_LIBRARIES}
|
|
+ RUNTIME DESTINATION bin
|
|
+ LIBRARY DESTINATION lib
|
|
+ ARCHIVE DESTINATION lib
|
|
+)
|
|
+if(NOT DISABLE_INSTALL_HEADERS)
|
|
+ install(DIRECTORY ${CPR_INCLUDE_DIRS}/cpr DESTINATION include)
|
|
+endif()
|