[cmake-developers] ExternalProject and git clone

Brad King brad.king at kitware.com
Thu Sep 12 09:18:44 EDT 2013


On 09/12/2013 09:13 AM, Daniele E. Domenichelli wrote:
> I cannot find a better name, so I used SOURCE_DIR_PRESERVE...
> Perhaps SOURCE_DIR_SAFE or something similar?

How about SOURCE_DIR_PERSISTENT?

> +  # FIXME is there a better way to avoid this CMP0012 warning? (see line 295)

In any project with a sufficiently high cmake_minimum_required(VERSION)
the policy should be set to NEW already.

> +  if(${source_dir_preserve})

Just use the variable name here without dereferencing.

-Brad



More information about the cmake-developers mailing list