Skip to content

Commit

Permalink
let CMake generates compile_commands.js for clangd
Browse files Browse the repository at this point in the history
  • Loading branch information
LanderlYoung committed Apr 25, 2021
1 parent 608a25e commit fde3892
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -42,6 +42,7 @@ cmake-build-*
.project
.vscode
.vs
/compile_commands.json

# js
node_modules
Expand Down
1 change: 1 addition & 0 deletions test/CMakeLists.txt
@@ -1,6 +1,7 @@
cmake_minimum_required(VERSION 3.0)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

file(STRINGS ${CMAKE_CURRENT_LIST_DIR}/../VERSION SCRIPTX_VERSION)
project(ScriptXUnitTests VERSION ${SCRIPTX_VERSION} LANGUAGES CXX C)
Expand Down

0 comments on commit fde3892

Please sign in to comment.