Slight tweak to IPO build commands to ensure it works if compiler does not support IPO.

This commit is contained in:
John Tramm 2020-01-20 17:05:49 +00:00
parent 494dc0382a
commit 6945d949ed

View file

@ -73,6 +73,8 @@ endif()
# Enable interprocedural (link time) optimization if requested and supported
#===============================================================================
set(ipo_support_detected FALSE)
if (NOT (CMAKE_VERSION VERSION_LESS 3.9))
cmake_policy(SET CMP0069 NEW)
include(CheckIPOSupported)