[CMake] When is UPDATE_COMMAND executed in External Project?

Soonho Kong soonhok at cs.cmu.edu
Fri May 8 15:18:54 EDT 2015


Soonho Kong <soonhok at ...> writes:

> I'm using ExternalProject_Add in my CMakeList.txt file and I'm
> wondering when it's executed. Ideally, I want to execute this
> whenever a user is running a build command (i.e. make/ninja).
> However, it seems that this is not the case for now. Is there a way
> to achieve this goal?
> 
> Best,Soonho
> 


By re-reading my previous message, I realized that the question was
misleading. The following is what I wanted to ask:

1. When is "UPDATE_COMMAND" of external projects executed in cmake's
workflow?

2. How to make UPDATE_COMMAND running every time a user is running
'make/ninja'?

Best,
Soonho


More information about the CMake mailing list