| summaryrefslogtreecommitdiff |
path: root/CMakeLists.txt
diff options
| author | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2015-09-02 17:51:21 +0200 |
|---|---|---|
| committer | Nathanael Sensfelder <SpamShield0@MultiAgentSystems.org> | 2015-09-02 17:51:21 +0200 |
| commit | 7f455719eb619a34ce74cc08711bdabc4f129eaa (patch) | |
| tree | b22fc4ae20fded60ebb04bb64d11dc71a0b43f76 /CMakeLists.txt | |
| parent | f3d9a8e93134574c50dfea2147628468d6770f04 (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.txt | 7 |
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) + |


