<div dir="ltr"><div>Is there something that I am missing that will prevent make from *always* calling autogen and configure even though the target has been built and has not been changed ?</div><div><br></div><div>Here is the offending project.</div>
<div><br></div><div>## Grub boot loader</div><div>set(PROJECT_NAME grub)</div><div>set(PROJECT_URL git://<a href="http://git.savannah.gnu.org/grub.git">git.savannah.gnu.org/grub.git</a>)</div><div>set(PROJECT_DEPENDS bison)</div>
<div>set(PROJECT_CONFIGURE_COMMAND ./autogen.sh && ./configure)</div><div><br></div><div><br></div><div>ExternalProject_Add(</div><div> ${PROJECT_NAME}</div><div> DEPENDS ${PROJECT_DEPENDS}</div><div> GIT_REPOSITORY ${PROJECT_URL} </div>
<div> CONFIGURE_COMMAND ${PROJECT_CONFIGURE_COMMAND}</div><div> BUILD_COMMAND make -j 2</div><div> BUILD_IN_SOURCE 1 # What's up with that !</div><div> CMAKE_ARGS -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}</div>
<div> INSTALL_COMMAND ""</div><div>)</div></div>