Repository: opencv
Issue: CUDA (opencv_contrib) LINK : fatal error LNK1181: Unable to open the input file "Files/NVIDIA.obj"
Labels: priority: low,category: build/install,category: gpu/cuda (contrib)

<!--
If you have a question rather than reporting a bug please go to http://answers.opencv.org where you get much faster responses.
If you need further assistance please read [How To Contribute](https://github.com/opencv/opencv/wiki/How_to_contribute).

Please:

* Read the documentation to test with the latest developer build.
* Check if other person has already created the same issue to avoid duplicates. You can comment on it if there already is an issue.
* Try to be as detailed as possible in your report.
* Report only one problem per created issue.


This is a template helping you to create an issue which can be processed as quickly as possible. This is the bug reporting section for the OpenCV library.
-->

##### System information (version)
<!-- Example
- OpenCV => 3.1
- Operating System / Platform => Windows 64 Bit
- Compiler => Visual Studio 2015
-->

- OpenCV => 4.1.0
- Operating System / Platform => Windows 10 64 Bit
- Compiler => Visual Studio 2015 --> NMake

##### Detailed description

```
LINK: command "C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\opencv_world.dir\objects1.rsp /out:..\..\bin\opencv_world410.dll /implib:..\..\lib\opencv_world410.lib /pdb:D:\projects\cpp\opencv-4.1.0\cmake-build-release\bin\opencv_world410.pdb /dll /version:4.1 /NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG /machine:x64 /INCREMENTAL:NO -LIBPATH:C:\PROGRA~1\NVIDIA~2\CUDA\v9.1\lib\x64 ..\..\3rdparty\lib\ippiw.lib ..\..\3rdparty\ippicv\ippicv_win\icv\lib\intel64\ippicvmt.lib cudart_static.lib nppc.lib nppial.lib nppicc.lib nppicom.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cufft.lib -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1/lib/x64 cublas.lib cufft.lib ..\..\3rdparty\lib\libprotobuf.lib ..\..\lib\ade.lib ..\..\3rdparty\lib\zlib.lib ..\..\3rdparty\lib\libjpeg-turbo.lib ..\..\3rdparty\lib\libwebp.lib ..\..\3rdparty\lib\libpng.lib ..\..\3rdparty\lib\libtiff.lib ..\..\3rdparty\lib\libjasper.lib ..\..\3rdparty\lib\IlmImf.lib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\lib\x64\cuda.lib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\lib\x64\nvcuvid.lib comctl32.lib gdi32.lib ole32.lib setupapi.lib ws2_32.lib ..\..\3rdparty\lib\zlib.lib ..\..\3rdparty\lib\ittnotify.lib C:\Program Files\OSGeo4W64\lib\hdf5.lib ..\..\3rdparty\lib\quirc.lib cudart_static.lib nppc.lib nppial.lib nppicc.lib nppicom.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cufft.lib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\lib\x64\cuda.lib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\lib\x64\nvcuvid.lib comctl32.lib gdi32.lib ole32.lib setupapi.lib ws2_32.lib C:\Program Files\OSGeo4W64\lib\hdf5.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:..\..\bin\opencv_world410.dll.manifest" failed (exit code 1181) with the following output:
LINK : fatal error LNK1181: Unable to open the input file "Files/NVIDIA.obj"
```

##### Steps to reproduce

<!-- to add code example fence it with triple backticks and optional file extension
    ```.cpp
    // C++ code example
    ```
 or attach as .txt or .zip file
-->
> Step 1
```
cmake.exe -DCMAKE_BUILD_TYPE=Release 
    -DOPENCV_EXTRA_MODULES_PATH=D:\projects\cpp\opencv_contrib-4.1.0\modules 
    -DOPENCV_ENABLE_NONFREE=ON 
    -DWITH_OPENCL=ON 
    -DWITH_CUDA=ON 
   "-DCUDA_TOOLKIT_ROOT_DIR=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1"
    -DWITH_FFMPEG=ON 
    -DINSTALL_CREATE_DISTRIB=ON 
    -DENABLE_SSE=ON 
    -DENABLE_SSE2=ON 
    -DBUILD_TESTS=OFF 
    -DBUILD_PERF_TESTS=OFF 
    -DBUILD_opencv_python2=OFF 
    -DBUILD_opencv_python3=OFF 
    -G "CodeBlocks - NMake Makefiles" D:\projects\cpp\opencv-4.1.0
```
> Step 2
```
NMake
```

> Cmake output:

```
C:\Users\wangxiaoming\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\192.5728.100\bin\cmake\win\bin\cmake.exe -DCMAKE_BUILD_TYPE=Release -DOPENCV_EXTRA_MODULES_PATH=D:\projects\cpp\opencv_contrib-4.1.0\modules -DOPENCV_ENABLE_NONFREE=ON -DWITH_OPENCL=ON -DWITH_CUDA=ON "-DCUDA_TOOLKIT_ROOT_DIR=C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1" -DWITH_FFMPEG=ON -DINSTALL_CREATE_DISTRIB=ON -DENABLE_SSE=ON -DENABLE_SSE2=ON -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_opencv_python2=OFF -DBUILD_opencv_python3=OFF -G "CodeBlocks - NMake Makefiles" D:\projects\cpp\opencv-4.1.0
-- The CXX compiler identification is MSVC 19.0.24215.1
-- The C compiler identification is MSVC 19.0.24215.1
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)
-- Performing Test HAVE_CXX11 - Success
-- Found PythonInterp: C:/Users/wangxiaoming/AppData/Local/Programs/Python/Python36/python.exe (found suitable version "3.6.5", minimum required is "2.7") 
CMake Warning at cmake/OpenCVDetectPython.cmake:81 (message):
  CMake's 'find_host_package(PythonInterp 2.7)' founds wrong Python version:

  
  PYTHON_EXECUTABLE=C:/Users/wangxiaoming/AppData/Local/Programs/Python/Python36/python.exe


  PYTHON_VERSION_STRING=3.6.5

  Consider specify 'PYTHON2_EXECUTABLE' variable via CMake command line or
  environment variables

Call Stack (most recent call first):
  cmake/OpenCVDetectPython.cmake:275 (find_python)
  CMakeLists.txt:689 (include)


-- Found Python2: C:/Python27/python.exe (found version "2.7.15") found components:  Interpreter 
-- Found PythonInterp: C:/Python27/python.exe (found version "2.7.15") 
-- Found PythonLibs: C:/Python27/libs/python27.lib (found suitable exact version "2.7.15") 
-- Found PythonInterp: C:/Users/wangxiaoming/AppData/Local/Programs/Python/Python36/python.exe (found suitable version "3.6.5", minimum required is "3.2") 
-- Could NOT find PythonLibs: Found unsuitable version "3.6.4", but required is exact version "3.6.5" (found C:/ProgramData/Anaconda3/libs/python36.lib)
-- WARNING: Option ENABLE_SSE='ON' is deprecated and should not be used anymore
--          Behaviour of this option is not backward compatible
--          Refer to 'CPU_BASELINE'/'CPU_DISPATCH' CMake options documentation
-- WARNING: Option ENABLE_SSE2='ON' is deprecated and should not be used anymore
--          Behaviour of this option is not backward compatible
--          Refer to 'CPU_BASELINE'/'CPU_DISPATCH' CMake options documentation
-- Performing Test HAVE_CPU_SSE3_SUPPORT (check file: cmake/checks/cpu_sse3.cpp)
-- Performing Test HAVE_CPU_SSE3_SUPPORT - Success
-- Performing Test HAVE_CPU_SSSE3_SUPPORT (check file: cmake/checks/cpu_ssse3.cpp)
-- Performing Test HAVE_CPU_SSSE3_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT (check file: cmake/checks/cpu_sse41.cpp)
-- Performing Test HAVE_CPU_SSE4_1_SUPPORT - Success
-- Performing Test HAVE_CPU_POPCNT_SUPPORT (check file: cmake/checks/cpu_popcnt.cpp)
-- Performing Test HAVE_CPU_POPCNT_SUPPORT - Success
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT (check file: cmake/checks/cpu_sse42.cpp)
-- Performing Test HAVE_CPU_SSE4_2_SUPPORT - Success
-- Performing Test HAVE_CXX_ARCH:AVX (check file: cmake/checks/cpu_fp16.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX - Success
-- Performing Test HAVE_CXX_ARCH:AVX2 (check file: cmake/checks/cpu_avx2.cpp)
-- Performing Test HAVE_CXX_ARCH:AVX2 - Success
-- Performing Test HAVE_CPU_AVX_512F_SUPPORT (check file: cmake/checks/cpu_avx512.cpp)
-- Performing Test HAVE_CPU_AVX_512F_SUPPORT - Failed
-- AVX_512F is not supported by C++ compiler
-- Performing Test HAVE_CPU_AVX512_SKX_SUPPORT (check file: cmake/checks/cpu_avx512skx.cpp)
-- Performing Test HAVE_CPU_AVX512_SKX_SUPPORT - Failed
-- AVX512_SKX is not supported by C++ compiler
-- Dispatch optimization AVX512_SKX is not available, skipped
-- Performing Test HAVE_CPU_BASELINE_FLAGS
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for fseeko
-- Looking for fseeko - not found
-- Check size of off64_t
-- Check size of off64_t - failed
-- libjpeg-turbo: VERSION = 2.0.2, BUILD = opencv-4.1.0-libjpeg-turbo
-- Check size of size_t
-- Check size of size_t - done
-- Check size of unsigned long
-- Check size of unsigned long - done
-- Looking for include file intrin.h
-- Looking for include file intrin.h - found
-- Looking for assert.h
-- Looking for assert.h - found
-- Looking for fcntl.h
-- Looking for fcntl.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for io.h
-- Looking for io.h - found
-- Looking for limits.h
-- Looking for limits.h - found
-- Looking for malloc.h
-- Looking for malloc.h - found
-- Looking for memory.h
-- Looking for memory.h - found
-- Looking for search.h
-- Looking for search.h - found
-- Looking for string.h
-- Looking for string.h - found
-- Performing Test C_HAS_inline
-- Performing Test C_HAS_inline - Success
-- Check size of signed short
-- Check size of signed short - done
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Check size of signed int
-- Check size of signed int - done
-- Check size of unsigned int
-- Check size of unsigned int - done
-- Check size of signed long
-- Check size of signed long - done
-- Check size of signed long long
-- Check size of signed long long - done
-- Check size of unsigned long long
-- Check size of unsigned long long - done
-- Check size of unsigned char *
-- Check size of unsigned char * - done
-- Check size of ptrdiff_t
-- Check size of ptrdiff_t - done
-- Looking for memmove
-- Looking for memmove - found
-- Looking for setmode
-- Looking for setmode - found
-- Looking for strcasecmp
-- Looking for strcasecmp - not found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strrchr
-- Looking for strrchr - found
-- Looking for strstr
-- Looking for strstr - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtol
-- Looking for strtol - found
-- Looking for strtoull
-- Looking for strtoull - found
-- Looking for lfind
-- Looking for lfind - found
-- Performing Test HAVE_SNPRINTF
-- Performing Test HAVE_SNPRINTF - Success
-- Check if the system is big endian
-- Searching 16 bit integer
-- Using unsigned short
-- Check if the system is big endian - little endian
-- IPPICV: Download: ippicv_2019_win_intel64_20180723_general.zip
-- found Intel IPP (ICV version): 2019.0.0 [2019.0.0 Gold]
-- at: D:/projects/cpp/opencv-4.1.0/cmake-build-release/3rdparty/ippicv/ippicv_win/icv
-- found Intel IPP Integration Wrappers sources: 2019.0.0
-- at: D:/projects/cpp/opencv-4.1.0/cmake-build-release/3rdparty/ippicv/ippicv_win/iw
-- CUDA detected: 9.1
-- CUDA NVCC target flags: -gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35;-gencode;arch=compute_37,code=sm_37;-gencode;arch=compute_50,code=sm_50;-gencode;arch=compute_52,code=sm_52;-gencode;arch=compute_60,code=sm_60;-gencode;arch=compute_61,code=sm_61;-gencode;arch=compute_70,code=sm_70;-D_FORCE_INLINES
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off
-- Looking for sgemm_
-- Looking for sgemm_ - not found
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE  
-- Could NOT find BLAS (missing: BLAS_LIBRARIES) 
-- LAPACK requires BLAS
-- A library with LAPACK API not found. Please specify library location.
-- Found apache ant: C:/Program Files/apache-ant-1.9.11/bin/ant.bat (1.9.11)
-- Found JNI: C:/Users/wangxiaoming/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/192.5728.100/jbr/lib/jawt.lib  
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
-- ADE: Download: v0.1.1d.zip
-- OpenCV Python: during development append to PYTHONPATH: D:/projects/cpp/opencv-4.1.0/cmake-build-release/python_loader
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
-- FFMPEG: Download: opencv_ffmpeg.dll
-- FFMPEG: Download: opencv_ffmpeg_64.dll
-- FFMPEG: Download: ffmpeg_version.cmake
-- Looking for mfapi.h
-- Looking for mfapi.h - found
-- Looking for d3d11_4.h
-- Looking for d3d11_4.h - not found
-- Caffe:   NO
-- Protobuf:   NO
-- Glog:   NO
-- freetype2:   NO
-- harfbuzz:    NO
-- Module opencv_ovis disabled because OGRE3D was not found
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
-- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.
-- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h
-- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h
-- Module opencv_sfm disabled because the following dependencies are not found: Eigen Glog/Gflags
-- Processing WORLD modules...
--     module opencv_cudev...
--     module opencv_core...
--     module opencv_cudaarithm...
--     module opencv_flann...
--     module opencv_hdf...
--     module opencv_imgproc...
--     module opencv_ml...
--     module opencv_phase_unwrapping...
--     module opencv_plot...
--     module opencv_quality...
--     module opencv_reg...
--     module opencv_surface_matching...
--     module opencv_cudafilters...
--     module opencv_cudaimgproc...
--     module opencv_cudawarping...
--     module opencv_dnn...
--     module opencv_fuzzy...
--     module opencv_gapi...
--     module opencv_hfs...
--     module opencv_imgcodecs...
--     module opencv_photo...
--     module opencv_videoio...
--     module opencv_xphoto...
--     module opencv_cudacodec...
--     module opencv_highgui...
--     module opencv_bioinspired...
--     module opencv_dnn_objdetect...
--     module opencv_features2d...
--     module opencv_line_descriptor...
--     module opencv_saliency...
--     module opencv_text...
-- Tesseract:   NO
--     module opencv_calib3d...
--     module opencv_ccalib...
--     module opencv_cudafeatures2d...
--     module opencv_cudastereo...
--     module opencv_datasets...
--     module opencv_objdetect...
--     module opencv_rgbd...
--     module opencv_shape...
--     module opencv_structured_light...
--     module opencv_video...
--     module opencv_xfeatures2d...
-- xfeatures2d/boostdesc: Download: boostdesc_bgm.i
-- xfeatures2d/boostdesc: Download: boostdesc_bgm_bi.i
-- xfeatures2d/boostdesc: Download: boostdesc_bgm_hd.i
-- xfeatures2d/boostdesc: Download: boostdesc_binboost_064.i
-- xfeatures2d/boostdesc: Download: boostdesc_binboost_128.i
-- xfeatures2d/boostdesc: Download: boostdesc_binboost_256.i
-- xfeatures2d/boostdesc: Download: boostdesc_lbgm.i
-- xfeatures2d/vgg: Download: vgg_generated_48.i
-- xfeatures2d/vgg: Download: vgg_generated_64.i
-- xfeatures2d/vgg: Download: vgg_generated_80.i
-- xfeatures2d/vgg: Download: vgg_generated_120.i
--     module opencv_ximgproc...
--     module opencv_xobjdetect...
--     module opencv_aruco...
--     module opencv_bgsegm...
--     module opencv_cudabgsegm...
--     module opencv_cudalegacy...
--     module opencv_cudaobjdetect...
--     module opencv_dpm...
--     module opencv_face...
-- data: Download: face_landmark_model.dat
--     module opencv_optflow...
--     module opencv_stitching...
--     module opencv_tracking...
--     module opencv_cudaoptflow...
--     module opencv_stereo...
--     module opencv_superres...
--     module opencv_videostab...
-- Processing WORLD modules... DONE
-- Excluding from source files list: modules/imgproc/src/sumpixels.avx512_skx.cpp
-- Excluding from source files list: <BUILD>/modules/world/layers/layers_common.avx512_skx.cpp
-- 
-- General configuration for OpenCV 4.1.0 =====================================
--   Version control:               unknown
-- 
--   Extra modules:
--     Location (extra):            D:/projects/cpp/opencv_contrib-4.1.0/modules
--     Version control (extra):     unknown
-- 
--   Platform:
--     Timestamp:                   2019-08-16T09:50:10Z
--     Host:                        Windows 10.0.17763 AMD64
--     CMake:                       3.14.5
--     CMake generator:             NMake Makefiles
--     CMake build tool:            nmake
--     MSVC:                        1900
--     Configuration:               Release
-- 
--   CPU/HW features:
--     Baseline:                    SSE SSE2 SSE3
--       requested:                 SSE3
--       required:                  SSE SSE2
--     Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2
--       requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
--       SSE4_1 (13 files):         + SSSE3 SSE4_1
--       SSE4_2 (1 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
--       FP16 (0 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
--       AVX (4 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
--       AVX2 (27 files):           + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2
-- 
--   C/C++:
--     Built as dynamic libs?:      YES
--     C++ Compiler:                C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe  (ver 19.0.24215.1)
--     C++ flags (Release):         /DWIN32 /D_WINDOWS /W4 /GR  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /FS     /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8   /MD /O2 /Ob2 /DNDEBUG 
--     C++ flags (Debug):           /DWIN32 /D_WINDOWS /W4 /GR  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /FS     /EHa /wd4127 /wd4251 /wd4324 /wd4275 /wd4512 /wd4589 /MP8   /MDd /Zi /Ob0 /Od /RTC1 
--     C Compiler:                  C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
--     C flags (Release):           /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /FS       /MP8    /MD /O2 /Ob2 /DNDEBUG 
--     C flags (Debug):             /DWIN32 /D_WINDOWS /W3  /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _SCL_SECURE_NO_WARNINGS /Gy /bigobj /Oi  /FS       /MP8  /MDd /Zi /Ob0 /Od /RTC1 
--     Linker flags (Release):      /machine:x64  /INCREMENTAL:NO 
--     Linker flags (Debug):        /machine:x64  /debug /INCREMENTAL 
--     ccache:                      NO
--     Precompiled headers:         NO
--     Extra dependencies:          cudart_static.lib nppc.lib nppial.lib nppicc.lib nppicom.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cufft.lib -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1/lib/x64
--     3rdparty dependencies:
-- 
--   OpenCV modules:
--     To be built:                 aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dpm face features2d flann fuzzy gapi hdf hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab world xfeatures2d ximgproc xobjdetect xphoto
--     Disabled:                    python2
--     Disabled by dependency:      -
--     Unavailable:                 cnn_3dobj cvv freetype java js matlab ovis python3 sfm ts viz
--     Applications:                apps
--     Documentation:               NO
--     Non-free algorithms:         YES
-- 
--   Windows RT support:            NO
-- 
--   GUI: 
--     Win32 UI:                    YES
--     VTK support:                 NO
-- 
--   Media I/O: 
--     ZLib:                        build (ver 1.2.11)
--     JPEG:                        build-libjpeg-turbo (ver 2.0.2-62)
--     WEBP:                        build (ver encoder: 0x020e)
--     PNG:                         build (ver 1.6.36)
--     TIFF:                        build (ver 42 - 4.0.10)
--     JPEG 2000:                   build (ver 1.900.1)
--     OpenEXR:                     build (ver 1.7.1)
--     HDR:                         YES
--     SUNRASTER:                   YES
--     PXM:                         YES
--     PFM:                         YES
-- 
--   Video I/O:
--     DC1394:                      NO
--     FFMPEG:                      YES (prebuilt binaries)
--       avcodec:                   YES (58.35.100)
--       avformat:                  YES (58.20.100)
--       avutil:                    YES (56.22.100)
--       swscale:                   YES (5.3.100)
--       avresample:                YES (4.0.0)
--     GStreamer:                   NO
--     DirectShow:                  YES
--     Media Foundation:            YES
--       DXVA:                      NO
-- 
--   Parallel framework:            Concurrency
-- 
--   Trace:                         YES (with Intel ITT)
-- 
--   Other third-party libraries:
--     Intel IPP:                   2019.0.0 Gold [2019.0.0]
--            at:                   D:/projects/cpp/opencv-4.1.0/cmake-build-release/3rdparty/ippicv/ippicv_win/icv
--     Intel IPP IW:                sources (2019.0.0)
--               at:                D:/projects/cpp/opencv-4.1.0/cmake-build-release/3rdparty/ippicv/ippicv_win/iw
--     Lapack:                      NO
--     Eigen:                       NO
--     Custom HAL:                  NO
--     Protobuf:                    build (3.5.1)
-- 
--   NVIDIA CUDA:                   YES (ver 9.1, CUFFT CUBLAS NVCUVID)
--     NVIDIA GPU arch:             30 35 37 50 52 60 61 70
--     NVIDIA PTX archs:
-- 
--   OpenCL:                        YES (NVD3D11)
--     Include path:                D:/projects/cpp/opencv-4.1.0/3rdparty/include/opencl/1.2
--     Link libraries:              Dynamic load
-- 
--   Python (for build):            C:/Python27/python.exe
-- 
--   Java:                          
--     ant:                         C:/Program Files/apache-ant-1.9.11/bin/ant.bat (ver 1.9.11)
--     JNI:                         C:/Users/wangxiaoming/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/192.5728.100/jbr/include C:/Users/wangxiaoming/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/192.5728.100/jbr/include/win32 C:/Users/wangxiaoming/AppData/Local/JetBrains/Toolbox/apps/CLion/ch-0/192.5728.100/jbr/include
--     Java wrappers:               NO
--     Java tests:                  NO
-- 
--   Install to:                    D:/projects/cpp/opencv-4.1.0/cmake-build-release/install
-- -----------------------------------------------------------------
-- 
-- Configuring done
-- Generating done
-- Build files have been written to: D:/projects/cpp/opencv-4.1.0/cmake-build-release
```

> NMake output
```
[  2%] Built target zlib
[  5%] Built target libjpeg-turbo
[  8%] Built target libtiff
[ 16%] Built target libwebp
[ 19%] Built target libjasper
[ 20%] Built target libpng
[ 25%] Built target IlmImf
[ 27%] Built target ippiw
[ 32%] Built target libprotobuf
[ 32%] Built target quirc
[ 32%] Built target ittnotify
[ 33%] Built target ade
[ 33%] Built target opencv_videoio_plugins
Scanning dependencies of target opencv_world
[ 33%] Building CXX object modules/world/CMakeFiles/opencv_world.dir/__/core/src/system.cpp.obj
system.cpp
[ 33%] Linking CXX shared library ..\..\bin\opencv_world410.dll
LINK: command "C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMakeFiles\opencv_world.dir\objects1.rsp /out:..\..\bin\opencv_world410.dll /implib:..\..\lib\opencv_world410.lib /pdb:D:\projects\cpp\opencv-4.1.0\cmake-build-release\bin\opencv_world410.pdb /dll /version:4.1 /NODEFAULTLIB:atlthunk.lib /NODEFAULTLIB:atlsd.lib /NODEFAULTLIB:libcmt.lib /DEBUG /machine:x64 /INCREMENTAL:NO -LIBPATH:C:\PROGRA~1\NVIDIA~2\CUDA\v9.1\lib\x64 ..\..\3rdparty\lib\ippiw.lib ..\..\3rdparty\ippicv\ippicv_win\icv\lib\intel64\ippicvmt.lib cudart_static.lib nppc.lib nppial.lib nppicc.lib nppicom.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cufft.lib -LIBPATH:C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v9.1/lib/x64 cublas.lib cufft.lib ..\..\3rdparty\lib\libprotobuf.lib ..\..\lib\ade.lib ..\..\3rdparty\lib\zlib.lib ..\..\3rdparty\lib\libjpeg-turbo.lib ..\..\3rdparty\lib\libwebp.lib ..\..\3rdparty\lib\libpng.lib ..\..\3rdparty\lib\libtiff.lib ..\..\3rdparty\lib\libjasper.lib ..\..\3rdparty\lib\IlmImf.lib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\lib\x64\cuda.lib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\lib\x64\nvcuvid.lib comctl32.lib gdi32.lib ole32.lib setupapi.lib ws2_32.lib ..\..\3rdparty\lib\zlib.lib ..\..\3rdparty\lib\ittnotify.lib C:\Program Files\OSGeo4W64\lib\hdf5.lib ..\..\3rdparty\lib\quirc.lib cudart_static.lib nppc.lib nppial.lib nppicc.lib nppicom.lib nppidei.lib nppif.lib nppig.lib nppim.lib nppist.lib nppisu.lib nppitc.lib npps.lib cublas.lib cufft.lib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\lib\x64\cuda.lib C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.1\lib\x64\nvcuvid.lib comctl32.lib gdi32.lib ole32.lib setupapi.lib ws2_32.lib C:\Program Files\OSGeo4W64\lib\hdf5.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:..\..\bin\opencv_world410.dll.manifest" failed (exit code 1181) with the following output:
LINK : fatal error LNK1181: 无法打开输入文件“Files/NVIDIA.obj”
NMAKE : fatal error U1077: “C:\Users\wangxiaoming\AppData\Local\JetBrains\Toolbox\apps\CLion\ch-0\192.5728.100\bin\cmake\win\bin\cmake.exe”: 返回代码“0xffffffff”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"”: 返回代码“0x2”
Stop.
NMAKE : fatal error U1077: “"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\nmake.exe"”: 返回代码“0x2”
Stop.

```