On 11/29/2012 02:48 PM, Stephen Kelly wrote:
> So maybe I should only do the expansion if containsVariable is true?
>
> +//----------------------------------------------------------------------------
> +static bool containsVariable(const std::string &lib)
> +{
> + const std::string::size_type openpos = lib.find("${");
> + return (openpos != std::string::npos)
> + && (lib.find("}", openpos) != std::string::npos);
> +}
>
> Then I wouldn't need a policy.
IMO the policy is worthwhile anyway. I reverted your previous
topic using the above approach and replaced it with this:
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=2a0a5c78
-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