Skip to content

Commit 21e1ec3

Browse files
committed
[cmake] sync with llnl/Umpire#1033 to be able to use w/ C++20
1 parent cdbd9bb commit 21e1ec3

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

CMakeLists.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,15 @@ endif()
231231
if(NOT CMAKE_EXE_LINKER_FLAGS OR NOT DEFINED CMAKE_EXE_LINKER_FLAGS)
232232
set(CMAKE_EXE_LINKER_FLAGS "$ENV{LDFLAGS}")
233233
endif()
234+
235+
# Detect libc++ linker mismatch (e.g. Homebrew LLVM headers vs system libc++)
236+
include(CheckCXXFeatures)
237+
if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
238+
vgkit_check_libcxx_linker_mismatch(MODIFY_GLOBAL_FLAGS)
239+
else()
240+
vgkit_check_libcxx_linker_mismatch()
241+
endif()
242+
234243
if (NOT CMAKE_CXX_COMPILER)
235244
message(FATAL_ERROR "C++ compiler not found")
236245
endif()

external/versions.cmake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# for each dependency track both current and previous id (the variable for the latter must contain PREVIOUS)
22
# to be able to auto-update them
33

4-
set(TA_TRACKED_VGCMAKEKIT_TAG 4c949fd7ccfe4b4f0e103288a5c0f557c6e740c0)
4+
set(TA_TRACKED_VGCMAKEKIT_TAG 256d9462bb765787f5acb69be154b26d6efba8b6)
55

66
# N.B. may need to update INSTALL.md manually with the CUDA-specific version
77
set(TA_TRACKED_EIGEN_VERSION 3.3.5)
@@ -23,8 +23,8 @@ set(TA_TRACKED_BTAS_PREVIOUS_TAG 1cfcb12647c768ccd83b098c64cda723e1275e49)
2323
set(TA_TRACKED_LIBRETT_TAG 6eed30d4dd2a5aa58840fe895dcffd80be7fbece)
2424
set(TA_TRACKED_LIBRETT_PREVIOUS_TAG 354e0ccee54aeb2f191c3ce2c617ebf437e49d83)
2525

26-
set(TA_TRACKED_UMPIRE-CXX-ALLOCATOR_TAG cbb08408b1cfbbacc24992e36f52edb3a29bdedc)
27-
set(TA_TRACKED_UMPIRE-CXX-ALLOCATOR_PREVIOUS_TAG a48ad360e20b9733263768b54aa24afe5894faa4)
26+
set(TA_TRACKED_UMPIRE-CXX-ALLOCATOR_TAG eb9dddbd27c6db9d154d8c9e214f79debd4ebe55)
27+
set(TA_TRACKED_UMPIRE-CXX-ALLOCATOR_PREVIOUS_TAG cbb08408b1cfbbacc24992e36f52edb3a29bdedc)
2828

2929
set(TA_TRACKED_SCALAPACKPP_TAG 6397f52cf11c0dfd82a79698ee198a2fce515d81)
3030
set(TA_TRACKED_SCALAPACKPP_PREVIOUS_TAG 711ef363479a90c88788036f9c6c8adb70736cbf )

0 commit comments

Comments
 (0)