cmake 3.x policy CMP0026 disallows the LOCATION target property
From bruen...@google.com on November 02, 2014 13:24:09
configuring dr with cmake 3.0.2 results in a ton of warnings:
CMake Warning (dev) at api/samples/CMakeLists.txt:155 (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 "bbbuf". Use the target name directly with add_custom_command, or use the generator expression $<TARGET_FILE>, as appropriate.
Call Stack (most recent call first): api/samples/CMakeLists.txt:204 (add_sample_client) This warning is for project developers. Use -Wno-dev to suppress it.
xref https://code.google.com/p/drmemory/issues/detail?id=1651
Original issue: http://code.google.com/p/dynamorio/issues/detail?id=1557