vcpkg/ports/fann/fix-uwp-build.patch
Jack·Boos·Yu 89a8853159
[fann] Support UNIX, re-fix installation (#17682)
* [fann] Support UNIX, re-fix installation

* [fann] fix uwp build

* update baseline

* update version record
2021-05-07 14:21:09 -07:00

16 lines
366 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b91f6fb..22c39d7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,6 +22,10 @@ SET(PKGCONFIG_INSTALL_DIR /lib/pkgconfig)
INSTALL_FILES( ${PKGCONFIG_INSTALL_DIR} FILES fann.pc )
+if (MSVC)
+ add_compile_options(/wd4996)
+endif()
+
ADD_SUBDIRECTORY( src )
################# cpack ################