Handle NOCONFIG case when setting locations from CMake target properties
In case of CMake builds with unspecified build types, the NOCONFIG
configuration is created. This patch updates the macros in the CMake config files to also check this target property when setting variables.
See discussion in !223 (merged).
Edited by Markus Rickert