diff options
author | Robert Maynard <robert.maynard@kitware.com> | 2020-10-25 16:26:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-26 14:57:55 (GMT) |
commit | d192918586364b98e916887b190da825c1373f7f (patch) | |
tree | 5c753be8114cfd322a88a117c922b4cd20081907 /Modules/CheckCSourceCompiles.cmake | |
parent | 9fa7afe7d332ced27264f1ef7c921aa1d95bc476 (diff) | |
download | CMake-d192918586364b98e916887b190da825c1373f7f.zip CMake-d192918586364b98e916887b190da825c1373f7f.tar.gz CMake-d192918586364b98e916887b190da825c1373f7f.tar.bz2 |
Modules: Do not implicitly add new functions via old Check Modules
The conversion of Check<Lang>CompilerFlag, SourceCompiles, and
SourceRuns over to the new functions has the possibility of breaking
projects that had functions with those existing names.
To reduce the possibility of collisions we now have all the
legacy code call functions that start with `cmake_`, and users
will need to explicitly include the new modules to get the
non-prefixed versions
Fixes: #21359
Diffstat (limited to 'Modules/CheckCSourceCompiles.cmake')
-rw-r--r-- | Modules/CheckCSourceCompiles.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/CheckCSourceCompiles.cmake b/Modules/CheckCSourceCompiles.cmake index 975e653..698a007 100644 --- a/Modules/CheckCSourceCompiles.cmake +++ b/Modules/CheckCSourceCompiles.cmake @@ -66,8 +66,8 @@ Check if given C source compiles and links into an executable. #]=======================================================================] include_guard(GLOBAL) -include(CheckSourceCompiles) +include(Internal/CheckSourceCompiles) macro(CHECK_C_SOURCE_COMPILES SOURCE VAR) - check_source_compiles(C "${SOURCE}" ${VAR} ${ARGN}) + cmake_check_source_compiles(C "${SOURCE}" ${VAR} ${ARGN}) endmacro() |