Merge pull request #1026 from glebm/patch-1

cmake: Allow passing LTO option
This commit is contained in:
Robert Osfield 2021-01-18 14:44:07 +00:00 committed by GitHub
commit b330920c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)