Generate compile_commands.json

This commit is contained in:
kentsangkm 2021-07-08 21:33:25 +02:00 committed by John Maguire
parent a5e84bbe98
commit 6b2918ee92
1 changed files with 1 additions and 0 deletions

View File

@ -13,6 +13,7 @@ include(cmake/SpotifyVersion.cmake)
include(cmake/OptionalSource.cmake)
include(cmake/Format.cmake)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "")
if (CMAKE_CXX_COMPILER MATCHES ".*clang")
set(CMAKE_COMPILER_IS_CLANGXX 1)