From 9baf9861d73d8b0994dfe9c1afd726b60be1f5f6 Mon Sep 17 00:00:00 2001 From: Stefano Sinigardi Date: Thu, 1 Aug 2019 07:47:38 +0200 Subject: [PATCH] restore shared lib as default --- .gitignore | 3 +++ CMakeLists.txt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 79dee234..2a1cf1b2 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,6 @@ src/version.h lib/ share/ include/darknet/ +uselib +uselib_track +darknet diff --git a/CMakeLists.txt b/CMakeLists.txt index acdb8f67..d5d329d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,7 @@ set(Darknet_PATCH_VERSION 5) set(Darknet_VERSION ${Darknet_MAJOR_VERSION}.${Darknet_MINOR_VERSION}.${Darknet_PATCH_VERSION}) set(CMAKE_VERBOSE_MAKEFILE "FALSE" CACHE BOOL "Create verbose makefile") -set(BUILD_SHARED_LIBS "FALSE" CACHE BOOL "Create dark as a shared library") +set(BUILD_SHARED_LIBS "TRUE" CACHE BOOL "Create dark as a shared library") if (WIN32) set(SELECT_OPENCV_MODULES "TRUE" CACHE BOOL "Use only few selected OpenCV modules to circumvent some Ninja+CMake bugs on Windows") else()