2021-09-04 13:36:23 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2021-09-28 08:26:06 +08:00
|
|
|
index 53e6bd5..51d76c5 100644
|
2021-09-04 13:36:23 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2021-09-28 08:26:06 +08:00
|
|
|
@@ -231,10 +231,11 @@ endif (WITH_SYMBOL_VERSIONING AND ABIMAP_FOUND)
|
|
|
|
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source DEPENDS ${_SYMBOL_TARGET} VERBATIM)
|
2021-09-04 13:36:23 +08:00
|
|
|
|
|
|
|
# Link compile database for clangd
|
|
|
|
+if(UNIX)
|
2021-09-28 08:26:06 +08:00
|
|
|
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
|
2021-09-04 13:36:23 +08:00
|
|
|
"${CMAKE_BINARY_DIR}/compile_commands.json"
|
|
|
|
"${CMAKE_SOURCE_DIR}/compile_commands.json")
|
2021-09-28 08:26:06 +08:00
|
|
|
-
|
2021-09-04 13:36:23 +08:00
|
|
|
+endif()
|
|
|
|
message(STATUS "********************************************")
|
|
|
|
message(STATUS "********** ${PROJECT_NAME} build options : **********")
|
2021-09-28 08:26:06 +08:00
|
|
|
|