aboutsummaryrefslogtreecommitdiff
path: root/ports/cxxopts/fix-uwp-error.patch
blob: da1d45595724880306adebb87c79908963e7574e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 440490b..0ceb003 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -54,6 +54,8 @@ endif()
 
 add_library(cxxopts INTERFACE)
 
+add_definitions(-D_CRT_SECURE_NO_WARNINGS)
+
 # optionally, enable unicode support using the ICU library
 set(CXXOPTS_USE_UNICODE_HELP FALSE CACHE BOOL "Use ICU Unicode library")
 if(CXXOPTS_USE_UNICODE_HELP)