diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-06-20 15:36:35 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-06-20 15:37:30 -0700 |
| commit | d026905ae90290fd808ee0896e11e71f2ff8ac5b (patch) | |
| tree | 3777fba6d7b22110601140af91c40aa82e92e9c9 /ports/cpr/enable-install.patch | |
| parent | 7b5093984fb19cd4df1d3ee66bb6e72903694853 (diff) | |
| download | vcpkg-d026905ae90290fd808ee0896e11e71f2ff8ac5b.tar.gz vcpkg-d026905ae90290fd808ee0896e11e71f2ff8ac5b.zip | |
[cpr] Enable dynamic builds via CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS
Diffstat (limited to 'ports/cpr/enable-install.patch')
| -rw-r--r-- | ports/cpr/enable-install.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ports/cpr/enable-install.patch b/ports/cpr/enable-install.patch new file mode 100644 index 000000000..da8d3ee73 --- /dev/null +++ b/ports/cpr/enable-install.patch @@ -0,0 +1,17 @@ +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} DESTINATION include) ++endif() |
