From 72a21cab16d4513befc69a62d83e8fdee104064c Mon Sep 17 00:00:00 2001 From: Sajid Ali Date: Thu, 10 Aug 2023 09:08:04 -0500 Subject: [PATCH] do not copy compile_commands.json to source directory --- CMakeLists.txt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index abc50463a..2edb41be6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,11 +8,6 @@ if(${CMAKE_GENERATOR} STREQUAL "Unix Makefiles" OR ${CMAKE_GENERATOR} STREQUAL "Ninja") if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) - # and place it in the source directory https://stackoverflow.com/a/60910583 - add_custom_target( - copy-compile-commands ALL - ${CMAKE_COMMAND} -E copy_if_different - ${CMAKE_BINARY_DIR}/compile_commands.json ${PROJECT_SOURCE_DIR}) endif() endif()