Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ if (ENABLE_WFN91_LINALG_DISCOVERY_KIT)
else(ENABLE_SCALAPACK)
find_package(LAPACK REQUIRED)
# Propagate LAPACK -> BLAS if not set
# (LAPACK necessacarily contains a BLAS linker by standard)
# (LAPACK necessarily contains a BLAS linker by standard)
# TODO: Tell David to write a macro that hides this verbosity from user space
if( NOT BLAS_LIBRARIES )
set( BLAS_LIBRARIES "${LAPACK_LIBRARIES}" CACHE STRING "BLAS LIBRARIES" )
Expand Down
7 changes: 7 additions & 0 deletions cmake/modules/FindOrFetchUmpire.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ endif (NOT TARGET umpire)
# if not found, build via FetchContent
if (NOT TARGET umpire)

# caveat: on recent Ubuntu default libstdc++ provides filesystem, but if using older gcc (gcc-8) must link against
# libstdc++fs: https://bugs.launchpad.net/ubuntu/+source/gcc-8/+bug/1824721 ... skip the use of std::filesystem altogether with pre-9 gcc!!!
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
# disable by populating cache with compile test result variable
set(UMPIRE_ENABLE_FILESYSTEM OFF CACHE BOOL "Whether Umpire to use std::filesystem")
endif()

include(FetchContent)
FetchContent_Declare(
umpire
Expand Down
9 changes: 9 additions & 0 deletions external/umpire.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ else()
-DENABLE_LOGGING=OFF
-DENABLE_ASSERTS=${enable_umpire_asserts}
)

# caveat: on recent Ubuntu default libstdc++ provides filesystem, but if using older gcc (gcc-8) must link against
# libstdc++fs: https://bugs.launchpad.net/ubuntu/+source/gcc-8/+bug/1824721 ... skip the use of std::filesystem altogether with pre-9 gcc!!!
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS 9)
# disable by populating cache with compile test result variable
list(APPEND UMPIRE_CMAKE_ARGS
-DUMPIRE_ENABLE_FILESYSTEM=OFF)
endif()

if (ENABLE_CUDA)
list(APPEND UMPIRE_CMAKE_ARGS
-DENABLE_CUDA=ON
Expand Down