| summaryrefslogtreecommitdiff |
path: root/CMakeLists.txt
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-06-16 17:26:01 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2017-06-16 17:26:01 +0200 |
| commit | 071220857ef563eeb2d69006c547ff45abf376e2 (patch) | |
| tree | 0468d79ff39758b533004a95fa983cbcc13f0073 /CMakeLists.txt | |
| parent | 91e0989879dadf8a8fe49ba3cafebec5fd8744f9 (diff) | |
Woops, forgot.
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b994db..6f58fe9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,11 +12,13 @@ add_definitions(-D_POSIX_SOURCE) add_definitions(-D_POSIX_C_SOURCE=200809L) find_package(LibIRCClient REQUIRED) +set(CMAKE_C_FLAGS $ENV{CFLAGS}) if(CMAKE_COMPILER_IS_GNUCC) - set(CMAKE_C_FLAGS "-g -Wall -Wpedantic -Wconversion") + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -Wall -Wpedantic -Wconversion") #message(STATUS "GNUCC detected. Adding '-O3' parameter.") #set(CMAKE_C_FLAGS "-O3") endif() +message(STATUS "CFLAGS=${CMAKE_C_FLAGS}") # ${SRC_FILES} is recursively defined in the subdirectories. # Each subdirectory only adds the source files that are present at its level. |


