[cmake-developers] [PATCH] FindCUDA: Wrap keyword in if() string comparison

Brad King brad.king at kitware.com
Wed Sep 24 10:13:16 EDT 2014


On 09/22/2014 10:07 AM, Brad King wrote:
> Or, one could add the explicit PUSH/POP in modules, e.g.
> 
>  cmake_policy(PUSH)
>  cmake_policy(SET CMP0054 NEW)
>  ... module code ...
>  cmake_policy(POP)

Until such time as someone wishes to port a module explicitly
with the above approach we can use the explicit dereference
approach Adam first posted.  I've applied his patch here:

 FindCUDA: Avoid if() auto-dereference in string comparisons
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=84e3fde9

-Brad




More information about the cmake-developers mailing list