From 4a268be333fad5fed6b3d982dc6e8f88ab65f541 Mon Sep 17 00:00:00 2001 From: redtide Date: Tue, 26 Nov 2019 14:25:18 +0100 Subject: [PATCH] Detail fix for previous commit --- cmake/CheckIPO.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CheckIPO.cmake b/cmake/CheckIPO.cmake index 73b53d5a..5213cbda 100644 --- a/cmake/CheckIPO.cmake +++ b/cmake/CheckIPO.cmake @@ -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})