From 33439880478bfec6ee24104bb022ff6286587e5e Mon Sep 17 00:00:00 2001 From: Andre Sailer <andre.philippe.sailer@cern.ch> Date: Fri, 11 Aug 2017 14:01:35 +0200 Subject: [PATCH] dd4hep_generate_rootmap: use CMAKE_INSTALL_LIBDIR if it is set if the macro is called from other libraries this variable might be set and should be used for consistency --- cmake/DD4hep.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/cmake/DD4hep.cmake b/cmake/DD4hep.cmake index 499e6ae68..faa2a77d5 100644 --- a/cmake/DD4hep.cmake +++ b/cmake/DD4hep.cmake @@ -109,8 +109,13 @@ function(dd4hep_generate_rootmap_notapple library) # DEPENDS ${library}) ##add_custom_target(${library}Rootmap ALL DEPENDS ${rootmapfile}) + SET( install_destination "lib" ) + if( CMAKE_INSTALL_LIBDIR ) + SET( install_destination ${CMAKE_INSTALL_LIBDIR} ) + endif() + install(FILES ${LIBRARY_OUTPUT_PATH}/${rootmapfile} - DESTINATION lib + DESTINATION ${install_destination} ) endfunction() # -- GitLab