Ask Your Question

Revision history [back]

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?