Skip to content

Commit 1c7dd48

Browse files
committed
This works on Linux with clang++-19
1 parent da4c68f commit 1c7dd48

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ if(CMAKE_CXX_SCAN_FOR_MODULES)
1616
/usr/local/Cellar/gcc/15.2.0/lib/gcc/current/libstdc++.modules.json
1717
)
1818
else()
19-
set(CMAKE_CXX_STDLIB_MODULES_JSON $ENV{LLVM_DIR}/lib/c++/libc++.modules.json)
19+
set(CMAKE_CXX_STDLIB_MODULES_JSON
20+
$ENV{LLVM_DIR}/lib/c++/libc++.modules.json
21+
)
2022
endif()
2123
endif()
2224

module/tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(PROJECT_IS_TOP_LEVEL)
2121
if(CMAKE_GENERATOR STREQUAL "Ninja")
2222
if(
2323
CMAKE_CXX_COMPILER_ID STREQUAL "Clang"
24-
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 20.0
24+
AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.0
2525
)
2626
set(USE_MODULES ON)
2727
# see https://releases.llvm.org/15.0.0/projects/libcxx/docs/ReleaseNotes.html

0 commit comments

Comments
 (0)