-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is there a way to force the rebuild of external projects.
By default it seems that nothing is rebuilt (my projects only have
source and build, no updates, install or patches). I have tried to add
the following code:

ExternalProject_Get_Property(${project} stamp_dir)
ExternalProject_Add_Step(${project} forcebuild
        COMMAND ${CMAKE_COMMAND} -E touch_nocreate
"${stamp_dir}/${project}-configure"
        COMMENT "Forcing build step for '${project}'"
        DEPENDEES configure
        DEPENDERS build
        ALWAYS 1
    )

and this kind of works, but not reliably. Sometimes the build is made
and sometimes not. It seems that I need some time between touching a
file and launching the build command...
The same thing happens if I replace ${project}-configure by
${project}-patch.

Oh I use ninja in case this is relevant.

Is there a better way to achieve what I want ??

        Thanks

        Theo.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.13 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlE6RzMACgkQEr8WrU8nPV3KpgCffoJ4729B87GprLK+IFQpuNsp
uH0AniABv+zNRDd5b39McHvQ9bz6EdGp
=8N/M
-----END PGP SIGNATURE-----
--

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://www.cmake.org/mailman/listinfo/cmake

Reply via email to