summaryrefslogtreecommitdiffstats
path: root/Modules/CheckIPOSupported.cmake
diff options
context:
space:
mode:
authorMatthew Woehlke <matthew.woehlke@kitware.com>2022-09-16 17:14:51 (GMT)
committerMatthew Woehlke <matthew.woehlke@kitware.com>2022-09-16 17:14:51 (GMT)
commitd00d8537f6c52997f41535634c110116900e95c9 (patch)
tree182ce36bcfb35434f4f42302fd6077e6930835a8 /Modules/CheckIPOSupported.cmake
parent343685869716b2ac31876d3e4173ece46ea49efc (diff)
downloadCMake-d00d8537f6c52997f41535634c110116900e95c9.zip
CMake-d00d8537f6c52997f41535634c110116900e95c9.tar.gz
CMake-d00d8537f6c52997f41535634c110116900e95c9.tar.bz2
Modules: Use new keyword-dispatched try_compile signature
Modify modules that ship with CMake and use the project flavor of try_compile to use the new signature added by commit 56ae40cc59 (try_compile: Add PROJECT keyword-dispatched signature, 2022-09-14).
Diffstat (limited to 'Modules/CheckIPOSupported.cmake')
-rw-r--r--Modules/CheckIPOSupported.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/CheckIPOSupported.cmake b/Modules/CheckIPOSupported.cmake
index 14262a1..9108e34 100644
--- a/Modules/CheckIPOSupported.cmake
+++ b/Modules/CheckIPOSupported.cmake
@@ -137,9 +137,9 @@ macro(_ipo_run_language_check language)
try_compile(
_IPO_LANGUAGE_CHECK_RESULT
- "${bindir}"
- "${srcdir}"
- "${TRY_COMPILE_PROJECT_NAME}"
+ PROJECT "${TRY_COMPILE_PROJECT_NAME}"
+ SOURCE_DIR "${srcdir}"
+ BINARY_DIR "${bindir}"
CMAKE_FLAGS
"-DCMAKE_VERBOSE_MAKEFILE=ON"
"-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON"