CMAKE: use LINK_WHAT_YOU_USE in release builds
parent
26badd221f
commit
595529a268
|
@ -24,6 +24,10 @@ else()
|
|||
set(RELEASE True)
|
||||
endif()
|
||||
|
||||
if (${CMAKE_BUILD_TYPE} MATCHES "Release")
|
||||
set(CMAKE_LINK_WHAT_YOU_USE ON)
|
||||
endif()
|
||||
|
||||
include(CheckIPOSupported)
|
||||
check_ipo_supported(RESULT HAVE_LTO OUTPUT error)
|
||||
if (HAVE_LTO)
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
set(CMAKE_LINK_WHAT_YOU_USE ON)
|
||||
|
||||
if (USE_CLANG_TIDY)
|
||||
find_host_program(CLANG_TIDY_EXECUTABLE NAMES clang-tidy clang-tidy-3.8 clang-tidy-8 clang-tidy-9 clang-tidy-10 clang-tidy-11)
|
||||
if (CLANG_TIDY_EXECUTABLE)
|
||||
|
|
Loading…
Reference in New Issue