mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 19:17:50 +08:00
16 lines
535 B
Diff
16 lines
535 B
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index 263d34e..8c699b7 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -122,6 +122,10 @@ if (UNIX AND NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD)
|
||
|
target_compile_definitions(${CMAKE_PROJECT_NAME} PRIVATE -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=500)
|
||
|
endif()
|
||
|
|
||
|
+if (WIN32)
|
||
|
+ add_compile_options(/wd4068)
|
||
|
+endif()
|
||
|
+
|
||
|
aws_add_sanitizers(${CMAKE_PROJECT_NAME} BLACKLIST "sanitizer-blacklist.txt")
|
||
|
target_link_libraries(${CMAKE_PROJECT_NAME} PUBLIC ${PLATFORM_LIBS})
|
||
|
|