Skip to content

Commit

Permalink
use GNUInstallDirs for detecting install paths
Browse files Browse the repository at this point in the history
This helps with multilib builds

Signed-off-by: Khem Raj <raj.khem@gmail.com>
  • Loading branch information
kraj committed Dec 20, 2019
1 parent 58b2595 commit 67ccf77
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions sources/ade/CMakeLists.txt
Expand Up @@ -47,12 +47,14 @@ if(BUILD_ADE_DOCUMENTATION)
VERBATIM)
endif()

include(GNUInstallDirs)

install(TARGETS ade COMPONENT dev
EXPORT adeTargets
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION lib
INCLUDES DESTINATION include)
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}
INCLUDES DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

install(EXPORT adeTargets DESTINATION share/ade COMPONENT dev)

Expand Down

0 comments on commit 67ccf77

Please sign in to comment.