cleaned up LTO detection

This commit is contained in:
Erik Frojdh
2020-04-23 08:23:36 +02:00
parent eb257154c6
commit 337e56d9bf
4 changed files with 13 additions and 7 deletions

View File

@ -46,6 +46,11 @@ option(SLS_BUILD_DOCS "docs" OFF)
option(SLS_BUILD_EXAMPLES "examples" OFF)
option(SLS_TUNE_LOCAL "tune to local machine" OFF)
#Enable LTO if available
check_ipo_supported(RESULT SLS_LTO_AVAILABLE)
# Use ld.gold if it is available and isn't disabled explicitly
option(SLS_USE_LD_GOLD "Use GNU gold linker" ON)
if (SLS_USE_LD_GOLD)