Skip to content

Commit

Permalink
Use lib instead of CMAKE_INSTALL_LIBDIR when installing plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Aug 22, 2024
1 parent e1017e3 commit 6bf44a8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmake/DD4hepBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -675,13 +675,9 @@ function(dd4hep_add_plugin binary)
dd4hep_generate_rootmap(${binary})
ENDIF()
if(NOT ${ARG_NOINSTALL})
set(install_destination "lib")
if(CMAKE_INSTALL_LIBDIR)
set(install_destination ${CMAKE_INSTALL_LIBDIR})
endif()
install(TARGETS ${binary}
ARCHIVE DESTINATION ${install_destination}
LIBRARY DESTINATION ${install_destination}
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
)
endif()
endfunction(dd4hep_add_plugin)
Expand Down

0 comments on commit 6bf44a8

Please sign in to comment.