Fixing Travis build
This commit is contained in:
parent
f01ac4eeb4
commit
b60ff23d48
1 changed files with 3 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
|||
include (CheckIPOSupported)
|
||||
check_ipo_supported (RESULT result OUTPUT output)
|
||||
|
||||
if (result AND ENABLE_LTO AND ${CMAKE_BUILD_TYPE} STREQUAL "Release")
|
||||
if (${result} AND ${ENABLE_LTO} AND ${CMAKE_BUILD_TYPE} STREQUAL "Release")
|
||||
message (STATUS "\nLTO enabled.")
|
||||
else()
|
||||
if (${output})
|
||||
|
|
@ -13,8 +13,8 @@ else()
|
|||
set (ENABLE_LTO OFF)
|
||||
endif()
|
||||
|
||||
function(SFIZZ_ENABLE_LTO_IF_NEEDED TARGET)
|
||||
if (ENABLE_LTO)
|
||||
function (SFIZZ_ENABLE_LTO_IF_NEEDED TARGET)
|
||||
if (${ENABLE_LTO})
|
||||
message(STATUS "Enabling LTO on ${TARGET}")
|
||||
set_property (TARGET ${TARGET} PROPERTY INTERPROCEDURAL_OPTIMIZATION True)
|
||||
endif()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue