Detail fix for previous commit

This commit is contained in:
redtide 2019-11-26 14:25:18 +01:00
parent 4d139137cc
commit 4a268be333

View file

@ -2,7 +2,7 @@
include (CheckIPOSupported)
check_ipo_supported (RESULT result OUTPUT output)
if (result AND ENABLE_LTO AND ${CMAKE_BUILD_TYPE} MATCHES Release)
if (result AND ENABLE_LTO AND ${CMAKE_BUILD_TYPE} STREQUAL "Release")
message (STATUS "\nLTO enabled.")
else()
if (${output})