Skip to content

Commit 19b2381

Browse files
committed
Fix compiler program name for apple-clang
Try to fix CI build with CXX_MODULES
1 parent 082def7 commit 19b2381

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ message(
6060
"cmake is: ${CMAKE_VERSION} modules scan : ${CMAKE_CXX_SCAN_FOR_MODULES}"
6161
)
6262

63+
# gersemi: off
64+
6365
if(CMAKE_CXX_SCAN_FOR_MODULES)
6466
add_library(beman.scope)
6567
target_sources(
@@ -126,7 +128,8 @@ if(BEMAN_SCOPE_INSTALL_CONFIG_FILE_PACKAGE)
126128
EXPORT beman.scope-targets
127129
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/beman.scope
128130
NAMESPACE beman::
129-
CXX_MODULES_DIRECTORY cxx-modules
131+
CXX_MODULES_DIRECTORY
132+
cxx-modules
130133
COMPONENT beman.scope
131134
)
132135
endif()

cmake/appleclang-toolchain.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616

1717
include_guard(GLOBAL)
1818

19-
set(CMAKE_C_COMPILER clang)
20-
set(CMAKE_CXX_COMPILER clang++)
19+
set(CMAKE_C_COMPILER gcc)
20+
set(CMAKE_CXX_COMPILER g++)
2121

2222
if(BEMAN_BUILDSYS_SANITIZER STREQUAL "MaxSan")
2323
set(SANITIZER_FLAGS

0 commit comments

Comments
 (0)