Commit 6189a6f5 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

CMake install: DESTINATION now given by LIBDIR from GNUInstallDirs

parent d7bb89af
Pipeline #34696 passed with stage
in 29 seconds
......@@ -5,6 +5,7 @@ endif()
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(PreventInSourceBuilds)
include(GNUInstallDirs)
if(NOT DEFINED BUILD_SHARED_LIBS)
option(BUILD_SHARED_LIBS "Build as shared library" ON)
......@@ -74,7 +75,7 @@ include(CTest)
configure_file("libcerf.pc.in" "libcerf.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libcerf.pc"
DESTINATION "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig/")
DESTINATION "${CMAKE_INSTALL_PREFIX}/${LIBDIR}/pkgconfig/")
add_subdirectory(lib)
add_subdirectory(test)
......
......@@ -31,9 +31,9 @@ endif()
install(
TARGETS ${lib}
LIBRARY DESTINATION lib
RUNTIME DESTINATION lib
ARCHIVE DESTINATION lib
LIBRARY DESTINATION ${LIBDIR}
RUNTIME DESTINATION ${LIBDIR}
ARCHIVE DESTINATION ${LIBDIR}
COMPONENT Libraries)
install(
FILES ${inc_files}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment