enable warnings and cleanup

This commit is contained in:
2025-03-27 01:33:58 +02:00
parent 2015894068
commit 08c3587643
4 changed files with 18 additions and 15 deletions

View File

@@ -51,6 +51,10 @@ add_library(hiload SHARED
src/logger/sc_log.c
)
target_compile_options(hiload PRIVATE
$<$<C_COMPILER_ID:GNU>:-Wall -Wextra>
$<$<C_COMPILER_ID:Clang>:-Weverything>
)
target_link_libraries(hiload dl)
@@ -86,6 +90,11 @@ add_library(auditor-x86_64 SHARED
src/auditor/auditor-x86_64.c
)
target_compile_options(hiload PRIVATE
$<$<C_COMPILER_ID:GNU>:-Wall -Wextra>
$<$<C_COMPILER_ID:Clang>:-Weverything>
)
install(TARGETS auditor-x86_64
EXPORT auditor-x86_64Targets
ARCHIVE DESTINATION lib