From 3137fa520042c2d1ebfadae25a214517664ef7b2 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 24 Jan 2023 18:06:10 +0100 Subject: cmake: Do not use CMAKE_(BINARY|SOURCE)_DIR for compile_commands.json This should fix being imported by other projects. Fixes #85 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ababa8e..362e3b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,5 +89,5 @@ add_custom_target(dist # Link combile database for clangd execute_process(COMMAND cmake -E create_symlink - "${CMAKE_BINARY_DIR}/compile_commands.json" - "${CMAKE_SOURCE_DIR}/compile_commands.json") + "${cmocka_BINARY_DIR}/compile_commands.json" + "${cmocka_SOURCE_DIR}/compile_commands.json") -- cgit v1.1