hotfix: do not ignore CFLAGS env
This commit is contained in:
parent
a8df1d0c70
commit
3e6d0333b7
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project(core
|
||||
VERSION 0.2.2
|
||||
VERSION 0.2.3
|
||||
LANGUAGES C)
|
||||
|
||||
add_executable(core src/main.c)
|
||||
|
@ -8,6 +8,7 @@ add_executable(core src/main.c)
|
|||
target_link_libraries(core -lsqlite3)
|
||||
target_link_libraries(core -luuid)
|
||||
|
||||
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")
|
||||
|
|
Loading…
Reference in a new issue