CMAKE: always use CMAKE_LINK_WHAT_YOU_USE

Martin Gerhardy 2020-03-11 01:22:40 +01:00
parent e072fee69c
commit 139f7c0def
2 changed files with 1 additions and 4 deletions

View File

@ -62,7 +62,6 @@ option(USE_CCACHE "Use ccache" ON)
option(USE_GPROF "Use gprof - will become slow" OFF)
option(USE_GCOV "Use gcov - will become slow" OFF)
option(USE_DOXYGEN_CHECK "Use -Wdocumentation if available" OFF)
option(USE_LINK_WHAT_YOU_USE "Enable link-what-you-use" OFF)
option(USE_CPPCHECK "Enable cppcheck" OFF)
option(USE_CLANG_TIDY "Enable Clang Tidy" OFF)
set(PKGDATADIR "" CACHE STRING "System directory to search for data files")

View File

@ -1,6 +1,4 @@
if (USE_LINK_WHAT_YOU_USE)
set(CMAKE_LINK_WHAT_YOU_USE ON)
endif()
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)