summaryrefslogtreecommitdiffstats
path: root/Modules/CheckFunctionExists.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/CheckFunctionExists.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/CheckFunctionExists.cmake')
-rw-r--r--Modules/CheckFunctionExists.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/CheckFunctionExists.cmake b/Modules/CheckFunctionExists.cmake
index 9efa132..0135218 100644
--- a/Modules/CheckFunctionExists.cmake
+++ b/Modules/CheckFunctionExists.cmake
@@ -90,8 +90,7 @@ macro(CHECK_FUNCTION_EXISTS FUNCTION VARIABLE)
endif()
try_compile(${VARIABLE}
- ${CMAKE_BINARY_DIR}
- ${_cfe_source}
+ SOURCES ${_cfe_source}
COMPILE_DEFINITIONS ${CMAKE_REQUIRED_DEFINITIONS}
${CHECK_FUNCTION_EXISTS_ADD_LINK_OPTIONS}
${CHECK_FUNCTION_EXISTS_ADD_LIBRARIES}