mirror of
https://github.com/fpagliughi/sockpp.git
synced 2026-01-12 00:04:45 +08:00
#89 Fixed generator expression for older CMake
This commit is contained in:
@@ -109,10 +109,9 @@ target_include_directories(sockpp-objs
|
||||
|
||||
# --- Warnings ---
|
||||
|
||||
# Maybe set '-Werror' for Release builds?
|
||||
target_compile_options(sockpp-objs PRIVATE
|
||||
$<$<CXX_COMPILER_ID:MSVC>:/W3>
|
||||
$<$<CXX_COMPILER_ID:Clang>:-Wall -Wextra -Wpedantic -Wdocumentation>
|
||||
$<$<NOT:$<CXX_COMPILER_ID:MSVC,Clang>>:-Wall -Wextra -Wpedantic>
|
||||
$<$<CXX_COMPILER_ID:MSVC>:/W3>
|
||||
$<$<CXX_COMPILER_ID:Clang>:-Wall -Wextra -Wpedantic -Wdocumentation>
|
||||
$<$<NOT:$<OR:$<CXX_COMPILER_ID:MSVC>,$<CXX_COMPILER_ID:Clang>>>:-Wall -Wextra -Wpedantic>
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user