feat: support multiple COMPD definitions
This commit is contained in:
parent
86bb4baaf8
commit
64d2732b4e
@ -10,8 +10,9 @@ find_program(COMPDB_PATH
|
||||
)
|
||||
|
||||
|
||||
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
|
||||
if (COMPDB_PATH)
|
||||
if (COMPDB_PATH)
|
||||
IF(NOT TARGET COMPD)
|
||||
add_custom_target(COMPD
|
||||
ALL
|
||||
@ -20,4 +21,5 @@ if (COMPDB_PATH)
|
||||
COMMAND ${COMPDB_PATH} -p ${CMAKE_CURRENT_BINARY_DIR} list >compile_commands.json
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user