Skip to content

Commit

Permalink
CMakeLists.txt: fix clean_all target; add missing 'add_compile_option…
Browse files Browse the repository at this point in the history
…s(-Wno-c99-extensions ...)'
  • Loading branch information
DDvO committed Dec 5, 2024
1 parent 6fd3a97 commit ae2324c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ae2324c

Please sign in to comment.