Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists.txt uses hard-coded "-L" library flag to link CUDA library on Windows. #6710

Closed
Dubrzr opened this issue Jun 21, 2016 · 0 comments · Fixed by #6711
Closed

CMakeLists.txt uses hard-coded "-L" library flag to link CUDA library on Windows. #6710

Dubrzr opened this issue Jun 21, 2016 · 0 comments · Fixed by #6711
Labels

Comments

@Dubrzr
Copy link
Contributor

Dubrzr commented Jun 21, 2016

Please state the information for your system

  • OpenCV version: 3.1
  • Windows 10 x64
  • Visual Studio 2013 Pro Update 5 & CMake 3.6.0

In which part of the OpenCV library you got the issue?

  • CMake

Expected behaviour

  • Generate Visual Studio solution with correct link library flag for CUDA : "-LIBPATH:" instead of "-L"

Actual behaviour

  • CMake generates a Visual Studio solution with wrong link library flag for CUDA : "-L"

Code example to reproduce the issue / Steps to reproduce the issue

Actual problem is in CMakeLists.txt:

foreach(p ${CUDA_LIBS_PATH})
    set(OPENCV_LINKER_LIBS ${OPENCV_LINKER_LIBS} -L${p})
endforeach()

Solves following issues

Related problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants