Skip to content

Commit

Permalink
Merge pull request #130 from nE0sIghT/bugfix/libdir
Browse files Browse the repository at this point in the history
cmake: don't hardcode libdir value
  • Loading branch information
JosephP91 authored Oct 5, 2020
2 parents 2aa6061 + 4b41580 commit 906c259
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
cmake_minimum_required(VERSION 3.11...3.15)

include(GNUInstallDirs)

#if using an older VERSION of curl ocsp stapling can be disabled
set(CURL_MIN_VERSION "7.28.0")

Expand Down Expand Up @@ -38,4 +40,5 @@ add_subdirectory(test)
set(CURLCPP_LIB_LOCATION "$<TARGET_FILE:${curlcpp}>")

configure_file(CMake/curlcppConfig.cmake.in
${CMAKE_INSTALL_PREFIX}/lib/curlcpp/curlcppConfig.cmake @ONLY)
${CMAKE_BINARY_DIR}/curlcppConfig.cmake @ONLY)
install (FILES ${CMAKE_BINARY_DIR}/curlcppConfig.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/curlcpp)
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ if(IPO_SUPPORTED AND CMAKE_BUILD_TYPE STREQUAL "Release")
set_target_properties(curlcpp PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
endif()

install (TARGETS curlcpp LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)
install (TARGETS curlcpp LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install (FILES ${CURLCPP_HEADER_LIST} DESTINATION include/curlcpp)

0 comments on commit 906c259

Please sign in to comment.