summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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)
+