ganyc717 / Darknet-On-OpenCL

Darknet On OpenCL
MIT License
100 stars 44 forks source link

macOS/Windows support - CMakeLists.txt #18

Open drjasonharrison-vp-eio opened 5 years ago

drjasonharrison-vp-eio commented 5 years ago

In the CMakeLists.txt, instead of:

link_libraries(libpthread.so)

for compatibility with macOS and Windows use:

set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) link_libraries(Threads::Threads)