summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Simonis <simonisfrederic@gmail.com>2020-06-12 16:33:04 +0200
committerGitHub <noreply@github.com>2020-06-12 16:33:04 +0200
commitfb7723a9d7b2e702ecab3514c84f9c8137a69cd1 (patch)
treec0a37a906bbb5a71f746326a2290621058455ea3
parent8ef3d8f584fdc97c02bdc25e6d13d4c8bb4251ff (diff)
downloadopenttd-fb7723a9d7b2e702ecab3514c84f9c8137a69cd1.tar.xz
Add: [CMake] Always export compile commands (#8199)
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7b9788f2e..605f4b0a2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -91,6 +91,8 @@ endif (MSVC)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS NO)
+set(CMAKE_EXPORT_COMPILE_COMMANDS YES)
+
list(APPEND GENERATED_SOURCE_FILES "${CMAKE_BINARY_DIR}/generated/rev.cpp")
if (WIN32)
list(APPEND GENERATED_SOURCE_FILES "${CMAKE_BINARY_DIR}/generated/ottdres.rc")