From affe9d56a2e17683dc87c457c27cad7f39b0ad56 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 9 Jul 2014 13:11:38 -0400 Subject: Allow INTERFACE_SOURCES to specify $ (#14970) Fix cmTarget::GetSourceFiles to set EvaluateForBuildsystem on the $ generator expression so that the $ generator expression is allowed within an INTERFACE_SOURCES value. Extend the InterfaceLibrary test to cover this case. Extend the RunCMake.TargetObjects test to cover failure of $ when used through $ in a non-buildsystem context. --- Source/cmTarget.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'Source/cmTarget.cxx') diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 0a7724cb8b..667c2a4d2e 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -6375,6 +6375,7 @@ void cmTargetInternals::AddInterfaceEntries( "$"; cmGeneratorExpression ge(&it->Backtrace); cmsys::auto_ptr cge = ge.Parse(genex); + cge->SetEvaluateForBuildsystem(true); entries.push_back( new cmTargetInternals::TargetPropertyEntry(cge, *it)); } -- cgit v1.2.1