mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-05 22:00:10 -05:00
Merge topic 'doc-CMP0069-typos'
8d56308c Help: Fix module and function names in CMP0069 examples
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1122
This commit is contained in:
@@ -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