ADD_CUSTOM_COMMAND runs at build time, in the shell you're actually
building with.  EXECUTE_PROCESS runs at configuration time, in
whatever shell you started CMake with.           The vast majority of
the time, you want to accomplish things with ADD_CUSTOM_COMMAND.  You
can't use CMake script commands directly inside an ADD_CUSTOM_COMMAND,
you have to use things that actually work on the command line.  You
could run a new CMake instance to fire off a script, i.e.

COMMAND ${CMAKE_COMMAND} -D var=value -P myscript


Cheers,
Brandon Van Every

On 6/25/07, abhijeet mhatre <[EMAIL PROTECTED]> wrote:
Hi

I am using cmake for my project. My project has a dependency which is a 3rd 
party makefile based project.

I want cmake to just go to the other project directory and execute make over 
there and come back.

I want this to be done when I type make.



Is there any way to do it?

I tried using EXEC_PROGRAM() with a script file, but it keeps building the 
other project in the background when the ccmake UI is still on. I don't want 
that.



Regards

Abhijeet










____________________________________________________________________________________
Pinpoint customers who are looking for what you sell.
http://searchmarketing.yahoo.com/
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to