diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2023-01-24 18:06:10 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2023-02-16 15:33:15 +0100 |
commit | 3137fa520042c2d1ebfadae25a214517664ef7b2 (patch) | |
tree | af502fe999198b8f6f1351e39023293a2e5386dd | |
parent | 6e9d32f382f9864293fd9adae1e3a91ae5c19101 (diff) | |
download | cmocka-3137fa520042c2d1ebfadae25a214517664ef7b2.zip cmocka-3137fa520042c2d1ebfadae25a214517664ef7b2.tar.gz cmocka-3137fa520042c2d1ebfadae25a214517664ef7b2.tar.bz2 |
cmake: Do not use CMAKE_(BINARY|SOURCE)_DIR for compile_commands.json
This should fix being imported by other projects.
Fixes #85
-rw-r--r-- | CMakeLists.txt | 4 |
1 files 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") |