flann-1.9.1-cmake-3.11-1.patch 663 B

123456789101112
  1. --- a/src/cpp/CMakeLists.txt 2019-02-14 21:58:41.567625108 +0100
  2. +++ b/src/cpp/CMakeLists.txt 2019-02-14 21:59:04.017920926 +0100
  3. @@ -34,7 +34,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AN
  4. target_link_libraries(flann_cpp -Wl,-whole-archive flann_cpp_s -Wl,-no-whole-archive)
  5. if (BUILD_CUDA_LIB)
  6. - cuda_add_library(flann_cuda SHARED "")
  7. + cuda_add_library(flann_cuda SHARED "empty.cpp")
  8. set_target_properties(flann_cuda PROPERTIES LINKER_LANGUAGE CXX)
  9. target_link_libraries(flann_cuda -Wl,-whole-archive flann_cuda_s -Wl,-no-whole-archive)
  10. set_property(TARGET flann_cpp_s PROPERTY COMPILE_DEFINITIONS FLANN_USE_CUDA)