diff options
author | scivision <scivision@users.noreply.github.com> | 2023-03-09 22:08:45 -0500 |
---|---|---|
committer | scivision <scivision@users.noreply.github.com> | 2023-03-13 10:36:09 -0400 |
commit | 03c6ebf2b53956d9d8d035f9bf67bb73caca65f3 (patch) | |
tree | 339c721aef3fa301ecd50436522f4e239edc8c76 /Modules/FortranCInterface | |
parent | 7d43bcb4db2b26d9f9f8d828198252a44b5560a0 (diff) | |
download | cmake-03c6ebf2b53956d9d8d035f9bf67bb73caca65f3.tar.gz |
Modules:Check,GenerateExportHeader: include only what's needed
GenerateExportHeader had a hidden state requirement that other
modules were included first. Considering include_guard, Modules
should include all they actually use.
Diffstat (limited to 'Modules/FortranCInterface')
-rw-r--r-- | Modules/FortranCInterface/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/FortranCInterface/CMakeLists.txt b/Modules/FortranCInterface/CMakeLists.txt index 4bd7006efb..a0f186250b 100644 --- a/Modules/FortranCInterface/CMakeLists.txt +++ b/Modules/FortranCInterface/CMakeLists.txt @@ -6,11 +6,11 @@ project(FortranCInterface C Fortran) include(${FortranCInterface_BINARY_DIR}/Input.cmake OPTIONAL) # Check if the C compiler supports '$' in identifiers. -include(CheckCSourceCompiles) -check_c_source_compiles(" -extern int dollar$(void); -int main() { return 0; } -" C_SUPPORTS_DOLLAR) +include(CheckSourceCompiles) +check_source_compiles(C +"extern int dollar$(void); +int main() { return 0; }" +C_SUPPORTS_DOLLAR) # List manglings of global symbol names to try. set(global_symbols |