mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-26 04:09:35 +03:00
committed by
Brad King
parent
f15cfd891d
commit
8d56308c44
@@ -55,8 +55,8 @@ Produce a fatal error if support is not available:
|
||||
cmake_minimum_required(VERSION 3.9) # CMP0069 NEW
|
||||
project(foo)
|
||||
|
||||
include(CheckIPOSupport)
|
||||
check_ipo_support()
|
||||
include(CheckIPOSupported)
|
||||
check_ipo_supported()
|
||||
|
||||
# ...
|
||||
|
||||
@@ -69,11 +69,11 @@ Apply IPO flags only if compiler supports it:
|
||||
cmake_minimum_required(VERSION 3.9) # CMP0069 NEW
|
||||
project(foo)
|
||||
|
||||
include(CheckIPOSupport)
|
||||
include(CheckIPOSupported)
|
||||
|
||||
# ...
|
||||
|
||||
check_ipo_support(RESULT result)
|
||||
check_ipo_supported(RESULT result)
|
||||
if(result)
|
||||
set_property(TARGET ... PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user