mirror of https://github.com/AlexeyAB/darknet.git
revert #3389
This commit is contained in:
parent
7701a8cf54
commit
1b7a0dca09
|
@ -82,8 +82,8 @@ if(ENABLE_OPENCV)
|
|||
find_package(OpenCV)
|
||||
endif()
|
||||
find_package(Stb REQUIRED)
|
||||
if(${CMAKE_VERSION} VERSION_LESS "3.9.0")
|
||||
message(WARNING "To build with OpenMP support you need CMake 3.9.0+")
|
||||
if(${CMAKE_VERSION} VERSION_LESS "3.11.0")
|
||||
message(WARNING "To build with OpenMP support you need CMake 3.11.0+")
|
||||
else()
|
||||
find_package(OpenMP)
|
||||
endif()
|
||||
|
@ -280,7 +280,7 @@ if(OpenCV_FOUND)
|
|||
target_compile_definitions(dark PUBLIC -DOPENCV)
|
||||
endif()
|
||||
|
||||
if(WIN32 AND OPENMP_FOUND)
|
||||
if(OPENMP_FOUND)
|
||||
target_link_libraries(darknet PUBLIC OpenMP::OpenMP_CXX)
|
||||
target_link_libraries(darknet PUBLIC OpenMP::OpenMP_C)
|
||||
target_link_libraries(dark PUBLIC OpenMP::OpenMP_CXX)
|
||||
|
@ -304,7 +304,6 @@ endif()
|
|||
|
||||
target_link_libraries(darknet PRIVATE Threads::Threads)
|
||||
target_link_libraries(dark PRIVATE Threads::Threads)
|
||||
target_link_libraries(uselib PRIVATE Threads::Threads)
|
||||
|
||||
if(ENABLE_ZED_CAMERA)
|
||||
target_link_libraries(darknet PRIVATE ${ZED_LIBRARIES})
|
||||
|
|
Loading…
Reference in New Issue