[CMake] Re: call a configure command

Brandon Van Every bvanevery at gmail.com
Sat Dec 22 17:10:25 EST 2007


On Dec 22, 2007 4:25 PM, Alan W. Irwin <irwin at beluga.phys.uvic.ca> wrote:
>
> Note, you don't have to do any of the above with add_custom_command.  In
> principle, you could also do those external builds with execute_process.
> The difference, of course, is execute_process runs at CMake time so that
> solves the issue we discussed before of wx-config from your build of
> wxwidgets not being available at CMake time for the rest of your build.

This will fail.  execute_process runs in CMake's environment, not your
build environment.  Same reason we have to write try_compile and
try_run instead of just doing execute_process.


Cheers,
Brandon Van Every


More information about the CMake mailing list