Skip to content

Commit fa80e30

Browse files
authored
Merge pull request #386 from wjrforcyber/cmake_compilation_database
Refactor(cmake): Generate compilation database
2 parents a4d6775 + 504f604 commit fa80e30

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ cmake_minimum_required(VERSION 3.5.0)
33
include(CMakeParseArguments)
44
include(CheckCCompilerFlag)
55
include(CheckCXXCompilerFlag)
6+
# Generate compilation database compile_commands.json
7+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
68

79
# Default c++ standard used unless otherwise specified in target_compile_features.
810
set(CMAKE_CXX_STANDARD 17 CACHE STRING "the C++ standard to use for this project")

0 commit comments

Comments
 (0)