mirror of
https://github.com/obsqrbtz/clrsync.git
synced 2026-04-08 20:19:04 +03:00
build: write .clangd with proper compile_commands path on configure
This commit is contained in:
@@ -10,6 +10,10 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
file(WRITE "${CMAKE_SOURCE_DIR}/.clangd"
|
||||
"CompileFlags:
|
||||
CompilationDatabase: ${CMAKE_BINARY_DIR}")
|
||||
|
||||
option(USE_SYSTEM_GLFW "Use system-installed GLFW instead of fetching it statically" OFF)
|
||||
message(STATUS "USE_SYSTEM_GLFW: ${USE_SYSTEM_GLFW}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user