mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-26 07:08:07 +08:00
80fae15c03
* [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>
21 lines
608 B
Diff
21 lines
608 B
Diff
--- 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)
|