CMake: Produce compile commands on supported generators

This commit is contained in:
Kacper Michajłow
2020-11-07 07:00:27 +01:00
parent 786640ee1f
commit 35a01df5d1
+3 -1
View File
@@ -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