diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index abb29ea741..fdc5aa223e 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1108,7 +1108,7 @@ void cmMakefile::AddLibrary(const char* lname, int shared, target_location += "/"; } target_location += target.GetFullName(this); - target.SetProperty("LOCATION",target_location.c_str()); + it->second.SetProperty("LOCATION",target_location.c_str()); // Add an entry into the cache std::string ltname = lname;