X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=CMakeLists.txt;h=62c56a9cba55789a2b3bfc99d78834a67bdf45a9;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=3962da286acc06c24173dce04d0c7aa19bcac0c4;hpb=d00bfe9410cfcaeb247ba68a88144defb5184ac9;p=src%2Fapp-framework-binder.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 3962da28..62c56a9c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ ########################################################################### -# Copyright (C) 2015-2019 "IoT.bzh" +# Copyright (C) 2015-2020 "IoT.bzh" # # author: José Bollo # @@ -61,7 +61,11 @@ link_libraries(-Wl,--as-needed -Wl,--gc-sections -Wl,--no-undefined) add_compile_options(-Wall -Wextra -Wconversion) add_compile_options(-Wno-unused-parameter) # frankly not using a parameter does it care? add_compile_options(-Wno-sign-compare -Wno-sign-conversion) -add_compile_options(-Werror=maybe-uninitialized) +if (${CMAKE_C_COMPILER_ID} STREQUAL "GNU" OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU") + add_compile_options(-Werror=maybe-uninitialized) +elseif(${CMAKE_C_COMPILER_ID} STREQUAL "Clang" OR ${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang") + add_compile_options(-Werror=sometimes-uninitialized) +endif() add_compile_options(-Werror=implicit-function-declaration) add_compile_options(-ffunction-sections -fdata-sections) add_compile_options(-fPIC) @@ -194,6 +198,8 @@ ENDIF() IF(INCLUDE_SUPERVISOR) CONFIGURE_FILE(afs-supervisor.service.in afs-supervisor.service @ONLY) INSTALL(FILES + ${CMAKE_CURRENT_SOURCE_DIR}/afm-api-supervisor.service + ${CMAKE_CURRENT_SOURCE_DIR}/afm-api-supervisor.socket ${CMAKE_CURRENT_BINARY_DIR}/afs-supervisor.service DESTINATION ${UNITDIR_SYSTEM}