enable warnings and cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user