I have a CMakeLists.txt that does this:
get_target_property(myloc mytarget LOCATION)
It used to work fine, but CMake 3.0 deprecated using <
You can try to use/re-enable the < v3.0 behaviour.
cmake_policy(SET CMP0026 OLD)
See cmake-policies