summaryrefslogtreecommitdiffstats
path: root/Modules/Internal/CheckSourceCompiles.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-09-14 12:13:18 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-09-14 12:13:27 (GMT)
commit20f9b6973b533cd14beece126c9b76279a90ee4a (patch)
treec609c1002834b945234a0f02e4d217b03aa1b59c /Modules/Internal/CheckSourceCompiles.cmake
parent64b80f54f0205f9b040971eea114508ab52bfdbf (diff)
parent2edf0fc6d73510f4e93e2750bc0dbc8c6c376633 (diff)
downloadCMake-20f9b6973b533cd14beece126c9b76279a90ee4a.zip
CMake-20f9b6973b533cd14beece126c9b76279a90ee4a.tar.gz
CMake-20f9b6973b533cd14beece126c9b76279a90ee4a.tar.bz2
Merge topic 'modules-use-new-try_compile-signature'
2edf0fc6d7 Modules: Use new keyword-dispatched try_compile signature Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7656
Diffstat (limited to 'Modules/Internal/CheckSourceCompiles.cmake')
-rw-r--r--Modules/Internal/CheckSourceCompiles.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/Internal/CheckSourceCompiles.cmake b/Modules/Internal/CheckSourceCompiles.cmake
index 27aa3e0..a4415c4 100644
--- a/Modules/Internal/CheckSourceCompiles.cmake
+++ b/Modules/Internal/CheckSourceCompiles.cmake
@@ -93,8 +93,7 @@ function(CMAKE_CHECK_SOURCE_COMPILES _lang _source _var)
message(CHECK_START "Performing Test ${_var}")
endif()
try_compile(${_var}
- ${CMAKE_BINARY_DIR}
- ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.${_SRC_EXT}
+ SOURCES ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/src.${_SRC_EXT}
COMPILE_DEFINITIONS -D${_var} ${CMAKE_REQUIRED_DEFINITIONS}
${CHECK_${LANG}_SOURCE_COMPILES_ADD_LINK_OPTIONS}
${CHECK_${LANG}_SOURCE_COMPILES_ADD_LIBRARIES}