summaryrefslogtreecommitdiffstats
path: root/Modules/Internal
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-10-30 13:51:25 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-10-30 13:51:35 (GMT)
commit301d82a6ae46dfc816555f874882608009b766de (patch)
tree57ae4ec4f05218a29aeeb8b0d3039c3a7e6e8386 /Modules/Internal
parent6b3658aff1d9c2f15fac2c084995b57f1a316bdf (diff)
parenta524bf3aa712a783e24e9307cf8915310fb8613a (diff)
downloadCMake-301d82a6ae46dfc816555f874882608009b766de.zip
CMake-301d82a6ae46dfc816555f874882608009b766de.tar.gz
CMake-301d82a6ae46dfc816555f874882608009b766de.tar.bz2
Merge topic 'CheckSourceRuns-compatibility'
a524bf3aa7 CheckSourceRuns: do not fail on unrecognized arguments Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5426
Diffstat (limited to 'Modules/Internal')
-rw-r--r--Modules/Internal/CheckSourceRuns.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/Internal/CheckSourceRuns.cmake b/Modules/Internal/CheckSourceRuns.cmake
index c667245..3a4b758 100644
--- a/Modules/Internal/CheckSourceRuns.cmake
+++ b/Modules/Internal/CheckSourceRuns.cmake
@@ -51,7 +51,12 @@ function(CMAKE_CHECK_SOURCE_RUNS _lang _source _var)
set(_SRC_EXT "${arg}")
set(_key "")
else()
- message(FATAL_ERROR "Unknown argument:\n ${arg}\n")
+ set(message_type FATAL_ERROR)
+ if (_CheckSourceRuns_old_signature)
+ set(message_type AUTHOR_WARNING)
+ endif ()
+ message("${message_type}" "Unknown argument:\n ${arg}\n")
+ unset(message_type)
endif()
endforeach()