Skip to content

Commit

Permalink
CMake: enable output of compile commands during generation
Browse files Browse the repository at this point in the history
Generates a compile_commands.json file containing the exact compiler calls for all translation units of the project in machine-readable form.
  • Loading branch information
IvanDyachenko committed Dec 12, 2018
1 parent e87c773 commit 1d691cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ cmake_minimum_required(VERSION 3.5.1)
project(4-20mA-Loop-Calibrator C)

set(CMAKE_VERBOSE_MAKEFILE ON)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

set(CMAKE_SYSTEM_NAME Generic)
set(CMAKE_SYSTEM_PROCESSOR cortex-m0)
Expand Down

0 comments on commit 1d691cd

Please sign in to comment.