[cmake-developers] CheckTypeSize: Add support for C++

Brad King brad.king at kitware.com
Fri Oct 18 11:32:24 EDT 2013


On 10/18/2013 10:47 AM, Rolf Eike Beer wrote:
>>  if("x${arg}" STREQUAL "xBUILTIN_TYPES_ONLY")
> 
> Ah, horrid crap! :P
> 
> Any chance that this would not do what is expected from it?
> 
> if (arg STREQUAL "BUILTIN_TYPES_ONLY")

The "arg" is the foreach parameter, not a variable, so it needs
to appear as a literal "${arg}" placeholder.

-Brad



More information about the cmake-developers mailing list