File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 5151 set (CUDA_USE_STATIC_CUDA_RUNTIME ON )
5252endif ()
5353
54+ # Require threads because of std::thread.
55+ find_package (Threads REQUIRED)
56+
5457find_package (CUDA 7.0 REQUIRED)
5558
5659if (NOT CUDA_FOUND)
Original file line number Diff line number Diff line change @@ -58,11 +58,8 @@ set_target_properties(popsift PROPERTIES DEBUG_POSTFIX "d")
5858
5959# cannot use PRIVATE here as there is a bug in FindCUDA and CUDA_ADD_LIBRARY
6060# https://gitlab.kitware.com/cmake/cmake/issues/16097
61- target_link_libraries (popsift ${CUDA_CUDADEVRT_LIBRARY} ${CUDA_CUBLAS_LIBRARIES} )
61+ target_link_libraries (popsift ${CUDA_CUDADEVRT_LIBRARY} ${CUDA_CUBLAS_LIBRARIES} Threads::Threads )
6262
63- # Link to threads because we're using C++11 std::thread.
64- find_package (Threads REQUIRED)
65- target_link_libraries (popsift ${CMAKE_THREAD_LIBS_INIT} )
6663
6764
6865# EXPORTING THE LIBRARY
You can’t perform that action at this time.
0 commit comments