Commit 8d56308c authored by Ruslan Baratov's avatar Ruslan Baratov Committed by Brad King
Browse files

Help: Fix module and function names in CMP0069 examples

Fixes: #17153
parent f15cfd89
...@@ -55,8 +55,8 @@ Produce a fatal error if support is not available: ...@@ -55,8 +55,8 @@ Produce a fatal error if support is not available:
cmake_minimum_required(VERSION 3.9) # CMP0069 NEW cmake_minimum_required(VERSION 3.9) # CMP0069 NEW
project(foo) project(foo)
include(CheckIPOSupport) include(CheckIPOSupported)
check_ipo_support() check_ipo_supported()
# ... # ...
...@@ -69,11 +69,11 @@ Apply IPO flags only if compiler supports it: ...@@ -69,11 +69,11 @@ Apply IPO flags only if compiler supports it:
cmake_minimum_required(VERSION 3.9) # CMP0069 NEW cmake_minimum_required(VERSION 3.9) # CMP0069 NEW
project(foo) project(foo)
include(CheckIPOSupport) include(CheckIPOSupported)
# ... # ...
check_ipo_support(RESULT result) check_ipo_supported(RESULT result)
if(result) if(result)
set_property(TARGET ... PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) set_property(TARGET ... PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE)
endif() endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment