Skip to content

Commit 8845fd6

Browse files
committed
Allow EAMxx to take a cxx standard option
1 parent 30f5b06 commit 8845fd6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/eamxx/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,10 @@ if (SCREAM_CIME_BUILD)
5151
${CMAKE_CURRENT_SOURCE_DIR}/cmake/cime)
5252
endif ()
5353

54-
# We want to use C++17 in EAMxx
55-
set(CMAKE_CXX_STANDARD 17)
54+
if (NOT CMAKE_CXX_STANDARD)
55+
# Default to C++17 in EAMxx
56+
set(CMAKE_CXX_STANDARD 17)
57+
endif()
5658

5759
if (NOT SCREAM_CIME_BUILD)
5860
project(SCREAM CXX C Fortran)

0 commit comments

Comments
 (0)