[cmake-developers] configure_file() missing output file regeneration

Nils Gladitz nilsgladitz at gmail.com
Thu Jul 31 09:48:19 EDT 2014


On 07/31/2014 03:38 PM, Brad King wrote:
> The problem for VS and Xcode is that these "output" files may not
> be newer than the inputs, so they cannot be simply listed as build
> outputs of the rule to re-run CMake or it will run every time.
> The Makefile generator solves this with the cmake_check_build_system
> build target that runs every time and does custom analysis:
>
>   http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmake.cxx;hb=v3.0.0#l1971
>
> Such always-run targets do not look clean to IDE builds.

Hm alright ... 2.8.12 has the following changelog entry:

   CMake: Removal of configured files will retrigger CMake when issuing 
a build command

 From which I took that this was implemented for all generators.
But it sounds like this may not actually be possible/feasible.

Thanks for clarifying.

Nils



More information about the cmake-developers mailing list