[cmake-developers] Semi-colons in COMPILE_DEFINITIONS
Brad King
brad.king at kitware.com
Wed Jul 10 09:06:02 EDT 2013
On 07/10/2013 09:04 AM, Brad King wrote:
> The new code does:
>
> + target.GetCompileDefinitions(targetDefines, configName);
>
> which runs ExpandListArguments internally too. Then you re-compose
> a ;-list without re-escaping the semicolons and pass it to
>
> + targetOptions.AddDefines(targetDefinesString.c_str());
>
> which does ExpandListArguments again.
I think the simplest fix is to add a cmIDEOptions::AddDefines
overload that operates directly on the vector of strings.
-Brad
More information about the cmake-developers
mailing list