summaryrefslogtreecommitdiff
path: root/Help
diff options
context:
space:
mode:
authorRuslan Baratov <ruslan_baratov@yahoo.com>2017-08-09 19:08:18 +0300
committerBrad King <brad.king@kitware.com>2017-08-10 09:03:49 -0400
commit8d56308c44efb02515ce8f7608ca8a92423fb92f (patch)
tree87b6ca5a4195c78071e6f2b45609f278b6e3d502 /Help
parentf15cfd891d1e01247ed285320ae32b6c3182ac8f (diff)
downloadcmake-8d56308c44efb02515ce8f7608ca8a92423fb92f.tar.gz
Help: Fix module and function names in CMP0069 examples
Fixes: #17153
Diffstat (limited to 'Help')
-rw-r--r--Help/policy/CMP0069.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/Help/policy/CMP0069.rst b/Help/policy/CMP0069.rst
index b8f5d80b2f..0d5ddfde94 100644
--- a/Help/policy/CMP0069.rst
+++ b/Help/policy/CMP0069.rst
@@ -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()