We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 367dc24 commit cd43780Copy full SHA for cd43780
1 file changed
CMakeLists.txt
@@ -76,12 +76,22 @@ if (ERROR_SOURCES)
76
)
77
78
# Build-only helpers must not leak into exported interfaces.
79
- if (TARGET vix_warnings)
80
- target_link_libraries(vix_error PRIVATE vix_warnings)
+ if (NOT MSVC)
+ target_compile_options(vix_error PRIVATE
81
+ -Wall
82
+ -Wextra
83
+ -Wpedantic
84
+ )
85
endif()
86
- if (VIX_ENABLE_SANITIZERS AND TARGET vix_sanitizers)
- target_link_libraries(vix_error PRIVATE vix_sanitizers)
87
+ if (VIX_ENABLE_SANITIZERS AND NOT MSVC)
88
89
+ -fno-omit-frame-pointer
90
+ -fsanitize=address,undefined
91
92
+ target_link_options(vix_error PRIVATE
93
94
95
96
97
set_target_properties(vix_error PROPERTIES
0 commit comments