From ae2324c4b841ea9c88c69c5ef2c063d23af5e3b7 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Thu, 5 Dec 2024 10:13:25 +0100 Subject: [PATCH] CMakeLists.txt: fix clean_all target; add missing 'add_compile_options(-Wno-c99-extensions ...)' --- CMakeLists.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f2357ab1..0e02e202 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -158,9 +158,9 @@ add_compile_options(-pedantic) # -Werror is enabled only for development and CI, add_compile_options( -Wall -Woverflow -Wextra -Wmissing-prototypes -Wstrict-prototypes -Wswitch -Wsign-compare -Wformat -Wtype-limits -Wundef -Wconversion -Wunused-parameter) +add_compile_options(-Wno-c99-extensions -Wno-language-extension-token -Wno-declaration-after-statement -Wno-embedded-directive) # because of libsecutils: add_compile_options(-Wno-sign-conversion -Wno-shorten-64-to-32 -Wno-shadow) - # TODO maybe clean up code and re-enable property # set_property(TARGET ${LIBGENCMP_NAME} PROPERTY C_STANDARD 90) # set_property(TARGET cmpClient PROPERTY C_STANDARD 90) @@ -279,11 +279,12 @@ if(NOT TARGET clean_all) COMMAND ${CMAKE_BUILD_TOOL} clean COMMAND find . -name "*.o" -o -name "*.d" -o -regex "./libgencmp-.*" | xargs rm # after the following, cannot call this target again: + COMMAND rm -r build COMMAND find . ( -name "*.cmake" -o -name Makefile ) - -not path ./ libsecutils -not -path ./cmpossl + -not -path ./libsecutils -not -path ./cmpossl | xargs rm COMMAND find . -name CMakeFiles - -not path ./ libsecutils -not -path ./cmpossl + -not -path ./libsecutils -not -path ./cmpossl | xargs rm -r COMMAND rm CMakeCache.txt VERBATIM