[cmake-developers] Documented property IMPORTED_LOCATION does not exist
Brad King
brad.king at kitware.com
Wed Jan 25 08:14:37 EST 2012
On 1/25/2012 1:50 AM, Michael Wild wrote:
> So, to fix your code, use IMPORTED_LOCATION_NOCONFIG.
Actually just use "LOCATION" or "LOCATION_${CONFIG}" for some CONFIG:
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:LOCATION
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#prop_tgt:LOCATION_CONFIG
They will tell you where to find the target file for any target,
including imported targets. The IMPORTED_... properties are really
meant for *setting* to tell CMake something, not for *getting*
information from CMake.
-Brad
More information about the cmake-developers
mailing list