Skip to content

Update f90/CMakeLists.txt only use Fortran Flags for Fortran files#39

Merged
MiCurry merged 1 commit intomagnetotellurics:mainfrom
MiCurry:cmake_c_compiler_option_protection
Mar 5, 2026
Merged

Update f90/CMakeLists.txt only use Fortran Flags for Fortran files#39
MiCurry merged 1 commit intomagnetotellurics:mainfrom
MiCurry:cmake_c_compiler_option_protection

Conversation

@MiCurry
Copy link
Copy Markdown
Member

@MiCurry MiCurry commented Feb 10, 2026

Before, several flags were being specified for the ModEM target that were not properly being wrapped in a CMake generator expression. Currently this is not a problem at all, but it would prevent any C files to be included, as CMake will try to use these flags when compiling a C file.

This will prevent that issue occurring if a C file is added in the future.

Before, several flags were being specified for the ModEM target that were not
properly being wrapped in a CMake generator expression. Currently this is not a
problem at all, but it would prevent any C files to be included, as CMake will
try to use these flags when compiling a C file.

This will prevent that issue occurring if a C file is added in the future.
@MiCurry MiCurry force-pushed the cmake_c_compiler_option_protection branch from 74a5c62 to 6e36621 Compare March 5, 2026 18:47
@MiCurry MiCurry merged commit b8e7461 into magnetotellurics:main Mar 5, 2026
1 check passed
@MiCurry MiCurry deleted the cmake_c_compiler_option_protection branch March 5, 2026 18:57
MiCurry added a commit to MiCurry/ModEM that referenced this pull request Mar 16, 2026
…magnetotellurics#39)

Before, several flags were being specified for the ModEM target that were not
properly being wrapped in a CMake generator expression. Currently this is not a
problem at all, but it would prevent any C files to be included, as CMake will
try to use these flags when compiling a C file.

This will prevent that issue occurring if a C file is added in the future.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant