diff options
author | Brad King <brad.king@kitware.com> | 2022-09-14 12:13:18 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-09-14 12:13:27 (GMT) |
commit | 20f9b6973b533cd14beece126c9b76279a90ee4a (patch) | |
tree | c609c1002834b945234a0f02e4d217b03aa1b59c /Modules/CheckFunctionExists.cmake | |
parent | 64b80f54f0205f9b040971eea114508ab52bfdbf (diff) | |
parent | 2edf0fc6d73510f4e93e2750bc0dbc8c6c376633 (diff) | |
download | CMake-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.cmake | 3 |
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} |