From 7f455719eb619a34ce74cc08711bdabc4f129eaa Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Wed, 2 Sep 2015 17:51:21 +0200 Subject: Adds much needed verbose flags to the compiler and corrects the issues they pointed out. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'CMakeLists.txt') 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) + -- cgit v1.2.3-70-g09d2