From 35a01df5d186670fcce9dfb3381144c9bbe559fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 7 Nov 2020 05:31:46 +0100 Subject: [PATCH] CMake: Produce compile commands on supported generators --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a42928f0..3b7bb4eeb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,8 @@ set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) +set(CMAKE_EXPORT_COMPILE_COMMANDS ON) + # configure version set(sdrangel_VERSION_MAJOR "4") set(sdrangel_VERSION_MINOR "21") @@ -207,7 +209,7 @@ elseif (WIN32) # compile with full multicore if(MSVC) - add_compile_definitions(/MP) + add_compile_options(/MP) endif() # in alternative we can use ExternalProject