在ubuntu16.04中安装opencv2.4.8的时候利用如下命令进行cmake:
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/home/haha/local -D BUILD_opencv_gpu=OFF -D CUDA_GENERATION=Kepler -D PYTHON_LIBRARY=/home/haha/local/anaconda/bin …
报错如下:
(哪位大神给解决一下,感激涕零!)
– Detected version of GNU GCC: 54 (504)
CMake Warning (dev) at cmake/OpenCVUtils.cmake:203 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run “cmake --help-policy CMP0054” for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.
Quoted variables like “CMAKE_COMPILER_IS_GNUCXX” will no longer be
dereferenced when the policy is set to NEW. Since the policy is not set
the OLD behavior will be used.
Call Stack (most recent call first):
CMakeLists.txt:207 (OCV_OPTION)
This warning is for project developers. Use -Wno-dev to suppress it.
– Found OpenEXR: /usr/lib/x86_64-linux-gnu/libIlmImf.so
– checking for module ‘gstreamer-base-0.10’
– package ‘gstreamer-base-0.10’ not found
– checking for module ‘libv4l1’
– package ‘libv4l1’ not found
– Looking for linux/videodev.h
– Looking for linux/videodev.h - not found
– Looking for linux/videodev2.h
– Looking for linux/videodev2.h - found
– Looking for sys/videoio.h
– Looking for sys/videoio.h - not found
– Looking for libavformat/avformat.h
– Looking for libavformat/avformat.h - found
– Looking for ffmpeg/avformat.h
– Looking for ffmpeg/avformat.h - not found
– CUDA detected: 9.0
– CUDA NVCC target flags: -gencode;arch=compute_30,code=sm_30;-gencode;arch=compute_35,code=sm_35
– Could NOT find JNI (missing: JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)
– Assume that non-module dependency is available: CUDA_nppi_LIBRARY-NOTFOUND (for module opencv_core)
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
modules/core/CMakeLists.txt:56 (ocv_add_precompiled_headers)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
modules/core/CMakeLists.txt:56 (ocv_add_precompiled_headers)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVModule.cmake:760 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run “cmake --help-policy CMP0026” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The LOCATION property should not be read from target “opencv_test_core”.
Use the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.
Call Stack (most recent call first):
modules/core/CMakeLists.txt:58 (ocv_add_accuracy_tests)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
modules/core/CMakeLists.txt:58 (ocv_add_accuracy_tests)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
modules/core/CMakeLists.txt:58 (ocv_add_accuracy_tests)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:709 (ocv_add_precompiled_headers)
modules/core/CMakeLists.txt:59 (ocv_add_perf_tests)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:709 (ocv_add_precompiled_headers)
modules/core/CMakeLists.txt:59 (ocv_add_perf_tests)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:621 (ocv_add_precompiled_headers)
modules/flann/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:621 (ocv_add_precompiled_headers)
modules/flann/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVModule.cmake:760 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run “cmake --help-policy CMP0026” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The LOCATION property should not be read from target “opencv_test_flann”.
Use the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.
Call Stack (most recent call first):
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/flann/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/flann/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/flann/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:621 (ocv_add_precompiled_headers)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:621 (ocv_add_precompiled_headers)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVModule.cmake:760 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run “cmake --help-policy CMP0026” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The LOCATION property should not be read from target “opencv_test_imgproc”.
Use the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.
Call Stack (most recent call first):
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:709 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:624 (ocv_add_perf_tests)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:709 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:624 (ocv_add_perf_tests)
modules/imgproc/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
modules/highgui/CMakeLists.txt:285 (ocv_add_precompiled_headers)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
modules/highgui/CMakeLists.txt:285 (ocv_add_precompiled_headers)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVModule.cmake:760 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run “cmake --help-policy CMP0026” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The LOCATION property should not be read from target “opencv_test_highgui”.
Use the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.
Call Stack (most recent call first):
modules/highgui/CMakeLists.txt:321 (ocv_add_accuracy_tests)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
modules/highgui/CMakeLists.txt:321 (ocv_add_accuracy_tests)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
modules/highgui/CMakeLists.txt:321 (ocv_add_accuracy_tests)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:709 (ocv_add_precompiled_headers)
modules/highgui/CMakeLists.txt:322 (ocv_add_perf_tests)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:709 (ocv_add_precompiled_headers)
modules/highgui/CMakeLists.txt:322 (ocv_add_perf_tests)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:621 (ocv_add_precompiled_headers)
modules/features2d/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:621 (ocv_add_precompiled_headers)
modules/features2d/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVModule.cmake:760 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run “cmake --help-policy CMP0026” for policy details. Use the cmake_policy
command to set the policy and suppress this warning.
The LOCATION property should not be read from target
“opencv_test_features2d”. Use the target name directly with
add_custom_command, or use the generator expression $<TARGET_FILE>, as
appropriate.
Call Stack (most recent call first):
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/features2d/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:64 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:240 (_PCH_GET_COMPILE_FLAGS)
cmake/OpenCVPCHSupport.cmake:350 (add_precompiled_header)
cmake/OpenCVModule.cmake:608 (ocv_add_precompiled_header_to_target)
cmake/OpenCVModule.cmake:763 (ocv_add_precompiled_headers)
cmake/OpenCVModule.cmake:623 (ocv_add_accuracy_tests)
modules/features2d/CMakeLists.txt:2 (ocv_define_module)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:65 (GET_DIRECTORY_PROPERTY):
Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
property. Run “cmake --help-policy CMP0059” for policy details. Use the
cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
cmake/OpenCVPCHSupport.cmake:24