[Cmake-commits] [cmake-commits] king committed cmTarget.cxx 1.237 1.238

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Apr 8 16:28:59 EDT 2009


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv6987/Source

Modified Files:
	cmTarget.cxx 
Log Message:
BUG: Fix imported target config guess

When an IMPORTED target provides no generic configuration and no match
for a desired configuration then we choose any available configuration.
This change corrects the choice when the first listed available
configuration does not really have a location.


Index: cmTarget.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmTarget.cxx,v
retrieving revision 1.237
retrieving revision 1.238
diff -C 2 -d -r1.237 -r1.238
*** cmTarget.cxx	23 Mar 2009 18:48:09 -0000	1.237
--- cmTarget.cxx	8 Apr 2009 20:28:55 -0000	1.238
***************
*** 3566,3570 ****
        {
        suffix = "_";
!       suffix += cmSystemTools::UpperCase(availableConfigs[0]);
        std::string locProp = "IMPORTED_LOCATION";
        locProp += suffix;
--- 3566,3570 ----
        {
        suffix = "_";
!       suffix += cmSystemTools::UpperCase(*aci);
        std::string locProp = "IMPORTED_LOCATION";
        locProp += suffix;



More information about the Cmake-commits mailing list