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

Adam Strzelecki ono at java.pl
Sun Sep 21 14:48:45 EDT 2014


FYI unfortunately this solution does not work for CMakeFiles.txt with cmake_minimum_required(VERSION 2.6.1) or earlier because of CMP0011 that does implicit PUSH/POP does not work there. So setting cmake_policy(SET CMP0054 NEW) is internal modules will cause this policy to be not popped and carried out of the module.

This is pretty nasty surprise, since I thought this implicit PUSH/POP happened since the beginning. So currently I do not have any idea how to solve this in some elegant fashion therefore for now I removed stage/CMP0054-FindCUDA branch.

Maybe you can suggest something?

--Adam


More information about the cmake-developers mailing list