summaryrefslogtreecommitdiffstats
path: root/Modules/CheckCXXSourceRuns.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-10-26 12:13:58 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-10-28 19:06:02 (GMT)
commita524bf3aa712a783e24e9307cf8915310fb8613a (patch)
tree15b83ce8d536478f37c5156294f17d7a04fff27e /Modules/CheckCXXSourceRuns.cmake
parent96ea613f169cedc4087b536d95ca6c128b8f4eb6 (diff)
downloadCMake-a524bf3aa712a783e24e9307cf8915310fb8613a.zip
CMake-a524bf3aa712a783e24e9307cf8915310fb8613a.tar.gz
CMake-a524bf3aa712a783e24e9307cf8915310fb8613a.tar.bz2
CheckSourceRuns: do not fail on unrecognized arguments
The old `check_X_source_runs` modules did not verify the arguments, so we cannot start doing it now. Downgrade the hard error introduced in commit 357e2ef429 (CheckSoureRuns: Add a unified way to check if a source runs, 2020-09-14) via !5223 into a noisy warning.
Diffstat (limited to 'Modules/CheckCXXSourceRuns.cmake')
-rw-r--r--Modules/CheckCXXSourceRuns.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CheckCXXSourceRuns.cmake b/Modules/CheckCXXSourceRuns.cmake
index 246c873..c8ff3d7 100644
--- a/Modules/CheckCXXSourceRuns.cmake
+++ b/Modules/CheckCXXSourceRuns.cmake
@@ -68,5 +68,7 @@ include_guard(GLOBAL)
include(Internal/CheckSourceRuns)
macro(CHECK_CXX_SOURCE_RUNS SOURCE VAR)
+ set(_CheckSourceRuns_old_signature 1)
cmake_check_source_runs(CXX "${SOURCE}" ${VAR} ${ARGN})
+ unset(_CheckSourceRuns_old_signature)
endmacro()