Fixing Travis build

This commit is contained in:
redtide 2019-12-01 15:54:28 +01:00
parent f01ac4eeb4
commit b60ff23d48

View file

@ -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()