• Roman Donchenko's avatar
    Use imported targets for linking to CUDA · 6e121b2e
    Roman Donchenko authored
    This retains the desirable quality of not including paths to CUDA libraries
    from the build system into the config files, and has two major advantages:
    
    * It removes the need to use link_directories, which doesn't guarantee that
      the libraries from the supplied directory will be used (there may be
      libraries with the same names earlier in the search path).
    
    * It removes the need to put -L entries into OPENCV_LINKER_LIBS. This variable
      is used with target_link_libraries, where such entries are treated as linker
      flags, so doing this is unportable. I remove the support for -L entries
      from OpenCVGenPkgconfig.cmake, as well, to discourage adding them in the
      future.
    6e121b2e
Name
Last commit
Last update
3rdparty Loading commit data...
apps Loading commit data...
cmake Loading commit data...
data Loading commit data...
doc Loading commit data...
include Loading commit data...
modules Loading commit data...
platforms Loading commit data...
samples Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.tgitconfig Loading commit data...
CMakeLists.txt Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
index.rst Loading commit data...