Skip to content

Commit 28b3488

Browse files
committed
Prepare run-clang-tidy too
1 parent 3a95e02 commit 28b3488

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ if(CMAKE_CXX_SCAN_FOR_MODULES)
3636
endif()
3737

3838
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
39+
if(CMAKE_EXPORT_COMPILE_COMMANDS)
40+
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES})
41+
endif()
3942

4043
include(CMakePrintHelpers)
4144
cmake_print_variables(

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 gcc)
20-
set(CMAKE_CXX_COMPILER g++)
19+
set(CMAKE_C_COMPILER cc)
20+
set(CMAKE_CXX_COMPILER c++)
2121

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

0 commit comments

Comments
 (0)