Tons of CMake warnings with cmake 3.0.1 about CMP0042 policy
I have cmake version 3.0.1 While building it give many-many of this kind of sections:
CMake Warning (dev) at cmake/OpenCVGenPkgconfig.cmake:40 (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_videostab".
Use the target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.
I am new to cmake / make business. But from what I understand something have to be changed in current CMakeLists.txt
I haven't found any issue about it, so I am thinking of making one?
http://code.opencv.org/projects/opencv/issues
Oh, bummer. I forgot issues are not in github. I searched there and tab "issue" in search result led me into thinking it's not present. Thx.
Hello Aleksandr, May I ask if you have been able to solve the problem? Bevause I am having the same and i can't find any solution... Thank you in advance.
@Bensch. as annoying as it gets, it's just a warning.
using a cmake version < 3 would get rid of it, but it's probaly not worth changing only for that.