Skip to content

Commit

Permalink
Enable for GNU linker warnings for unused libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko Petric committed Mar 10, 2021
1 parent 57bdfda commit 6fc4479
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/DD4hepBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ macro(dd4hep_set_compiler_flags)
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -Wl,--version OUTPUT_VARIABLE stdout ERROR_QUIET)
if("${stdout}" MATCHES "GNU ")
set(LINKER_TYPE "GNU")
set(CMAKE_LINK_WHAT_YOU_USE TRUE)
dd4hep_debug("|DDD> Detected GNU compatible linker: ${stdout}" )
else()
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -Wl,-v ERROR_VARIABLE stderr )
Expand Down

0 comments on commit 6fc4479

Please sign in to comment.