Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use spack-stack modulefiles #56

Merged
merged 18 commits into from
Nov 25, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update CMakeLists.txt
Co-authored-by: Zachary Moon <[email protected]>
bbakernoaa and zmoon authored Oct 18, 2024
commit c3e6bacad5bb1256b87692e77c7acc32aa389447
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -6,9 +6,15 @@ project(NEXUS
VERSION 0.2.0
LANGUAGES Fortran)

# set compiler
# FC should be used to set compiler
if(NOT DEFINED ENV{FC})
message(FATAL_ERROR "CMAKE_Fortran_COMPILER is not defined")
message(WARNING "FC is not set. You may want to use it to specify a specific compiler.")
else()
if("$ENV{FC}" STREQUAL "")
message(WARNING "FC is set to empty string. You may want to use it to specify a specific compiler.")
else()
message(STATUS "FC is set: '${FC}'")
endif()
endif()

# Include local macros