Skip to content

Commit 84b58c3

Browse files
committed
Update CMakeLists.txt for clang-tidy
1 parent 39adfcd commit 84b58c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ set(PROJECT_NAME_TEST ${PROJECT_NAME}_unit_test) # name for the unit-test execut
2727
# Require at least C++17 for GoogleTest and modern C++ features
2828
set(CMAKE_CXX_STANDARD 20)
2929
set(CMAKE_CXX_STANDARD_REQUIRED ON)
30+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) # Enable output of compile commands for clang-tidy
3031

3132
# Optionally enforce warnings (good for learning/debugging)
3233
add_compile_options(-Wall -Wextra -Wpedantic)

0 commit comments

Comments
 (0)