mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 22:23:43 +00:00
Added compile commands copy function to CMake
This commit is contained in:
parent
b6854c79ec
commit
b031e74756
@ -39,3 +39,10 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug")
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address -fno-omit-frame-pointer")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -fsanitize=address -fno-omit-frame-pointer")
|
||||||
target_link_libraries(${PROJECT_NAME} PRIVATE "-fsanitize=address")
|
target_link_libraries(${PROJECT_NAME} PRIVATE "-fsanitize=address")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# link/copy compile commands to root dir
|
||||||
|
file(CREATE_LINK
|
||||||
|
${PROJECT_BINARY_DIR}/compile_commands.json
|
||||||
|
${PROJECT_SOURCE_DIR}/compile_commands.json
|
||||||
|
COPY_ON_ERROR SYMBOLIC
|
||||||
|
)
|
||||||
Loading…
x
Reference in New Issue
Block a user