Skip to content

Commit

Permalink
HOMME: do not set cxx standard. Kokkos will crap out anyways if c++17…
Browse files Browse the repository at this point in the history
… is not supported
  • Loading branch information
bartgol committed Feb 26, 2024
1 parent c693abe commit 6b23fe4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions components/homme/cmake/SetCompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ IF (${HOMME_USE_CXX})
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")

INCLUDE(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++14" CXX14_SUPPORTED)
IF (CXX14_SUPPORTED)
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
ELSEIF (${HOMME_USE_KOKKOS})
MESSAGE (FATAL_ERROR "Kokkos needs C++14, but the C++ compiler does not support it.")
ENDIF ()
CHECK_CXX_COMPILER_FLAG("-cxxlib" CXXLIB_SUPPORTED)
IF (CXXLIB_SUPPORTED)
SET(CXXLIB_SUPPORTED_CACHE TRUE CACHE BOOL "")
Expand Down

0 comments on commit 6b23fe4

Please sign in to comment.