Skip to content

Commit 33a9473

Browse files
committed
Fix CMakeLists.txt to create compile_commands.json
1 parent ec2ddbf commit 33a9473

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

mechanism/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
cmake_minimum_required(VERSION 3.15)
22
project(cppelib_mechanism CXX)
33

4+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
5+
46
file(GLOB_RECURSE CPPELIB_MECHANISM_SRC
57
"Assertion/*.h"
68
"Container/*.h"

platform/CMakeLists.txt

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
cmake_minimum_required(VERSION 3.15)
22
project(cppelib_platform CXX)
33

4+
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
5+
46
add_library(${PROJECT_NAME})
57
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
68

0 commit comments

Comments
 (0)