From 011c5a61028689789c0592c4bac6fb150d87bfad Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Fri, 17 Jul 2020 23:30:25 +0200 Subject: [PATCH] hotfix: do not ignore CFLAGS env --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41f11a9..71d27c1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required (VERSION 3.7) project(controller - VERSION 0.2.5 + VERSION 0.2.6 LANGUAGES C) add_executable(controller src/main.c) @@ -12,6 +12,7 @@ target_link_libraries(controller -luuid) option(WIRING_PI_DEBUG "Use WiringPi Debugging Tool (OFF)" OFF) +set(CMAKE_C_FLAGS "$ENV{CFLAGS}") SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wpedantic -Werror -Wall -Wextra -ffile-prefix-map=${CMAKE_SOURCE_DIR}/src/=") set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -fprofile-arcs -ftest-coverage")