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
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers