diff options
author | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-09-16 17:14:51 (GMT) |
---|---|---|
committer | Matthew Woehlke <matthew.woehlke@kitware.com> | 2022-09-16 17:14:51 (GMT) |
commit | d00d8537f6c52997f41535634c110116900e95c9 (patch) | |
tree | 182ce36bcfb35434f4f42302fd6077e6930835a8 /Modules/FortranCInterface | |
parent | 343685869716b2ac31876d3e4173ece46ea49efc (diff) | |
download | CMake-d00d8537f6c52997f41535634c110116900e95c9.zip CMake-d00d8537f6c52997f41535634c110116900e95c9.tar.gz CMake-d00d8537f6c52997f41535634c110116900e95c9.tar.bz2 |
Modules: Use new keyword-dispatched try_compile signature
Modify modules that ship with CMake and use the project flavor of
try_compile to use the new signature added by commit 56ae40cc59
(try_compile: Add PROJECT keyword-dispatched signature, 2022-09-14).
Diffstat (limited to 'Modules/FortranCInterface')
-rw-r--r-- | Modules/FortranCInterface/Detect.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/FortranCInterface/Detect.cmake b/Modules/FortranCInterface/Detect.cmake index 567fc37..6401aed 100644 --- a/Modules/FortranCInterface/Detect.cmake +++ b/Modules/FortranCInterface/Detect.cmake @@ -47,10 +47,10 @@ unset(_FortranCInterface_CMP0056) # Build a sample project which reports symbols. set(CMAKE_TRY_COMPILE_CONFIGURATION Release) try_compile(FortranCInterface_COMPILED - ${FortranCInterface_BINARY_DIR} - ${FortranCInterface_SOURCE_DIR} - FortranCInterface # project name - FortranCInterface # target name + PROJECT FortranCInterface + TARGET FortranCInterface + SOURCE_DIR ${FortranCInterface_SOURCE_DIR} + BINARY_DIR ${FortranCInterface_BINARY_DIR} CMAKE_FLAGS "-DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}" "-DCMAKE_Fortran_FLAGS:STRING=${CMAKE_Fortran_FLAGS}" |