Ensure if ENABLE_LTO is set to false to disable LTO

This commit is contained in:
Ryan Houdek 2020-02-18 15:48:53 -08:00 committed by Stefanos Kornilios Mitsis Poiitidis
parent 4abe6a9165
commit 44593feed0

View File

@ -16,6 +16,8 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
if (ENABLE_LTO)
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
else()
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE)
endif()
if (ENABLE_XRAY)