Skip to content

Commit 57d735a

Browse files
committed
Merge branch 'dev'
2 parents cac206d + 1c1b16d commit 57d735a

1 file changed

Lines changed: 16 additions & 10 deletions

File tree

CMakeLists.txt

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,23 @@ if (SYNC_SOURCES)
129129

130130
add_library(vix_sync STATIC ${SYNC_SOURCES})
131131

132-
if (TARGET vix_warnings)
133-
message(STATUS "[sync] vix_warnings detected (from umbrella)")
134-
target_link_libraries(vix_sync PRIVATE vix_warnings)
135-
136-
if (VIX_ENABLE_SANITIZERS AND TARGET vix_sanitizers)
137-
target_link_libraries(vix_sync PRIVATE vix_sanitizers)
138-
endif()
132+
if (NOT MSVC)
133+
target_compile_options(vix_sync PRIVATE
134+
-Wall
135+
-Wextra
136+
-Wpedantic
137+
)
138+
endif()
139139

140-
else()
141-
message(STATUS "[sync] vix_warnings not found (building sync standalone)")
142-
endif()
140+
if (VIX_ENABLE_SANITIZERS AND NOT MSVC)
141+
target_compile_options(vix_sync PRIVATE
142+
-fno-omit-frame-pointer
143+
-fsanitize=address,undefined
144+
)
145+
target_link_options(vix_sync PRIVATE
146+
-fsanitize=address,undefined
147+
)
148+
endif()
143149

144150
add_library(vix::sync ALIAS vix_sync)
145151
target_compile_features(vix_sync PUBLIC cxx_std_20)

0 commit comments

Comments
 (0)