mirror of https://github.com/AlexeyAB/darknet.git
Merge pull request #3389 from adujardin/master
Fix Ubuntu cmake compilation
This commit is contained in:
commit
e4f6b276e5
|
@ -274,7 +274,7 @@ if(OpenCV_FOUND)
|
||||||
target_compile_definitions(dark PUBLIC -DOPENCV)
|
target_compile_definitions(dark PUBLIC -DOPENCV)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(OPENMP_FOUND)
|
if(WIN32 AND OPENMP_FOUND)
|
||||||
target_link_libraries(darknet PUBLIC OpenMP::OpenMP_CXX)
|
target_link_libraries(darknet PUBLIC OpenMP::OpenMP_CXX)
|
||||||
target_link_libraries(darknet PUBLIC OpenMP::OpenMP_C)
|
target_link_libraries(darknet PUBLIC OpenMP::OpenMP_C)
|
||||||
target_link_libraries(dark PUBLIC OpenMP::OpenMP_CXX)
|
target_link_libraries(dark PUBLIC OpenMP::OpenMP_CXX)
|
||||||
|
@ -298,6 +298,7 @@ endif()
|
||||||
|
|
||||||
target_link_libraries(darknet PRIVATE Threads::Threads)
|
target_link_libraries(darknet PRIVATE Threads::Threads)
|
||||||
target_link_libraries(dark PRIVATE Threads::Threads)
|
target_link_libraries(dark PRIVATE Threads::Threads)
|
||||||
|
target_link_libraries(uselib PRIVATE Threads::Threads)
|
||||||
|
|
||||||
if(ENABLE_ZED_CAMERA)
|
if(ENABLE_ZED_CAMERA)
|
||||||
target_link_libraries(darknet PRIVATE ${ZED_LIBRARIES})
|
target_link_libraries(darknet PRIVATE ${ZED_LIBRARIES})
|
||||||
|
|
Loading…
Reference in New Issue