Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 678030 | Differences between
and this patch

Collapse All | Expand All

(-)flann-1.9.1/src/cpp/CMakeLists.txt.old (-1 / +1 lines)
Lines 34-40 if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AN Link Here
34
    target_link_libraries(flann_cpp -Wl,-whole-archive flann_cpp_s -Wl,-no-whole-archive)
34
    target_link_libraries(flann_cpp -Wl,-whole-archive flann_cpp_s -Wl,-no-whole-archive)
35
35
36
    if (BUILD_CUDA_LIB)
36
    if (BUILD_CUDA_LIB)
37
	    cuda_add_library(flann_cuda SHARED "")
37
	    cuda_add_library(flann_cuda SHARED "empty.cpp")
38
        set_target_properties(flann_cuda PROPERTIES LINKER_LANGUAGE CXX)
38
        set_target_properties(flann_cuda PROPERTIES LINKER_LANGUAGE CXX)
39
        target_link_libraries(flann_cuda -Wl,-whole-archive flann_cuda_s -Wl,-no-whole-archive)
39
        target_link_libraries(flann_cuda -Wl,-whole-archive flann_cuda_s -Wl,-no-whole-archive)
40
        set_property(TARGET flann_cpp_s PROPERTY COMPILE_DEFINITIONS FLANN_USE_CUDA)
40
        set_property(TARGET flann_cpp_s PROPERTY COMPILE_DEFINITIONS FLANN_USE_CUDA)

Return to bug 678030