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)
|
include (CheckIPOSupported)
|
||||||
check_ipo_supported (RESULT result OUTPUT output)
|
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.")
|
message (STATUS "\nLTO enabled.")
|
||||||
else()
|
else()
|
||||||
if (${output})
|
if (${output})
|
||||||
|
|
@ -13,8 +13,8 @@ else()
|
||||||
set (ENABLE_LTO OFF)
|
set (ENABLE_LTO OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
function(SFIZZ_ENABLE_LTO_IF_NEEDED TARGET)
|
function (SFIZZ_ENABLE_LTO_IF_NEEDED TARGET)
|
||||||
if (ENABLE_LTO)
|
if (${ENABLE_LTO})
|
||||||
message(STATUS "Enabling LTO on ${TARGET}")
|
message(STATUS "Enabling LTO on ${TARGET}")
|
||||||
set_property (TARGET ${TARGET} PROPERTY INTERPROCEDURAL_OPTIMIZATION True)
|
set_property (TARGET ${TARGET} PROPERTY INTERPROCEDURAL_OPTIMIZATION True)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue