summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2015-09-02 17:51:21 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2015-09-02 17:51:21 +0200
commit7f455719eb619a34ce74cc08711bdabc4f129eaa (patch)
treeb22fc4ae20fded60ebb04bb64d11dc71a0b43f76 /CMakeLists.txt
parentf3d9a8e93134574c50dfea2147628468d6770f04 (diff)
Adds much needed verbose flags to the compiler and corrects the issues they pointed out.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1ca449..1c788ce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,3 +14,10 @@ add_executable(relabsd ${SRC_FILES})
pkg_search_module(LIBEVDEV REQUIRED libevdev)
include_directories(${LIBEVDEV_INCLUDE_DIRS})
target_link_libraries(relabsd ${LIBEVDEV_LIBRARIES})
+target_compile_features(relabsd PUBLIC c_variadic_macros)
+
+if (CMAKE_COMPILER_IS_GNUCC)
+ message(STATUS "CMake is using GNUCC. Verbose flags are activated.")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pedantic -Wextra")
+endif (CMAKE_COMPILER_IS_GNUCC)
+