cmake: Allow passing LTO option

This commit is contained in:
Gleb Mazovetskiy 2021-01-14 01:22:12 +00:00 committed by Robert Osfield
parent 0161b8ab46
commit 4093860c32

View File

@ -30,6 +30,9 @@ if(COMMAND cmake_policy)
cmake_policy(SET CMP0017 NEW)
endif()
# INTERPROCEDURAL_OPTIMIZATION is enforced when enabled.
# Allows passing -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON
cmake_policy(SET CMP0069 NEW)
endif()
IF(APPLE)