aboutsummaryrefslogtreecommitdiff
path: root/ports/darknet/fix_shared_static.patch
diff options
context:
space:
mode:
authorStefano Sinigardi <stesinigardi@hotmail.com>2020-08-08 01:10:58 +0200
committerGitHub <noreply@github.com>2020-08-07 16:10:58 -0700
commit80fae15c0360462afeaeb1e1a4c53d3ddbd2711b (patch)
tree13cde3b85b122163b0f3c341ab54f58f62e11177 /ports/darknet/fix_shared_static.patch
parent19739183848c679e8058b5f907c06cb0be0bbc4d (diff)
downloadvcpkg-80fae15c0360462afeaeb1e1a4c53d3ddbd2711b.tar.gz
vcpkg-80fae15c0360462afeaeb1e1a4c53d3ddbd2711b.zip
[darknet] ready for yolo_v4 (#11037)
* [darknet] ready for yolo_v4 * [darknet] add yolov4 training weights * [darknet] use github host for release materials * [darknet] update to latest fixed revision * [darknet] update to 20200504 release * fix static/shared CRT linking mismatch * [darknet] update to 20200519 * [darknet] add yolov4-tiny Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Diffstat (limited to 'ports/darknet/fix_shared_static.patch')
-rw-r--r--ports/darknet/fix_shared_static.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/ports/darknet/fix_shared_static.patch b/ports/darknet/fix_shared_static.patch
new file mode 100644
index 000000000..5b9670f41
--- /dev/null
+++ b/ports/darknet/fix_shared_static.patch
@@ -0,0 +1,20 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,4 +1,4 @@
+-cmake_minimum_required(VERSION 3.12)
++cmake_minimum_required(VERSION 3.17)
+
+ set(Darknet_MAJOR_VERSION 0)
+ set(Darknet_MINOR_VERSION 2)
+@@ -77,6 +77,11 @@ if(CMAKE_CUDA_COMPILER AND ENABLE_CUDA)
+ else()
+ message(STATUS "Your setup supports half precision (it requires CC >= 7.0)")
+ endif()
++ endif()
++ if(BUILD_SHARED_LIBS)
++ set(CMAKE_CUDA_RUNTIME_LIBRARY "Shared")
++ else()
++ set(CMAKE_CUDA_RUNTIME_LIBRARY "Static")
+ endif()
+ else()
+ set(ENABLE_CUDA "FALSE" CACHE BOOL "Enable CUDA support" FORCE)