From c718ca70fd141cfbd678e7478fe1db51d30cea04 Mon Sep 17 00:00:00 2001 From: hans Date: Fri, 29 Oct 2021 00:13:44 +0200 Subject: [PATCH] Let CMake output compile_commands.json --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4c1c057..5c571ed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,9 @@ add_compile_definitions(_CRT_SECURE_NO_WARNINGS) add_subdirectory("vendor/SDL") +# some IDEs / text editors require compile_commands.json +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + # Add source to this project's executable. add_subdirectory("src")