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")