diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-01-27 10:07:53 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2022-01-27 10:07:53 +0100 |
commit | d70bd10f47f92928b3a918a82cdab230ffb1a5b0 (patch) | |
tree | ce058cc598058adcfba7c68526eac30e106535cd /src | |
parent | eeb9ddc6a66cd84d89141866d629800f729d9883 (diff) | |
parent | 6cf760460cfa3bdc126e8a6699e654f36d314205 (diff) | |
download | ayatana-indicator-power-d70bd10f47f92928b3a918a82cdab230ffb1a5b0.tar.gz ayatana-indicator-power-d70bd10f47f92928b3a918a82cdab230ffb1a5b0.tar.bz2 ayatana-indicator-power-d70bd10f47f92928b3a918a82cdab230ffb1a5b0.zip |
Merge branch 'tari01-pr/cleanup-compile-flags'
Attributes GH PR #55: https://github.com/AyatanaIndicators/ayatana-indicator-power/pull/55
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 38d3308..12fa6bb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -38,14 +38,6 @@ endif() # add the bin dir to our include path so the code can find the generated header files include_directories(${CMAKE_CURRENT_BINARY_DIR}) - -# add warnings/coverage info on handwritten files -# but not the autogenerated ones... -set(C_WARNING_ARGS "${C_WARNING_ARGS} -Wno-bad-function-cast") # g_clear_object() -set(C_WARNING_ARGS "${C_WARNING_ARGS} -Wno-switch-enum") -set_source_files_properties(${SERVICE_MANUAL_SOURCES} - PROPERTIES COMPILE_FLAGS "${C_WARNING_ARGS} -std=c99") - # the service library for tests to link against (basically, everything except main()) add_library(${SERVICE_LIB} STATIC ${SERVICE_MANUAL_SOURCES} ${SERVICE_GENERATED_SOURCES}) include_directories(${CMAKE_SOURCE_DIR}) @@ -53,6 +45,5 @@ link_directories(${SERVICE_DEPS_LIBRARY_DIRS}) # the executable: lib + main() add_executable (${SERVICE_EXEC} main.c) -set_source_files_properties(${SERVICE_SOURCES} main.c PROPERTIES COMPILE_FLAGS "${C_WARNING_ARGS} -std=c99") target_link_libraries (${SERVICE_EXEC} ${SERVICE_LIB} ${SERVICE_DEPS_LIBRARIES}) install (TARGETS ${SERVICE_EXEC} RUNTIME DESTINATION ${CMAKE_INSTALL_FULL_PKGLIBEXECDIR}) |