I ended up using a different approach based on ExternalProject:<br><br>include(ExternalProject)<br>ExternalProject_Add(c68kinc<br> DOWNLOAD_COMMAND ""<br> SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/c68k<br> CONFIGURE_COMMAND cmake <SOURCE_DIR><br>
INSTALL_COMMAND ""<br> BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/c68k<br>)<br><br>Setting CONFIGURE_COMMAND is useless, but the output just<br>doesn't look right without it.<br>We tested it for cross compiling a Windows version and a<br>
Dreamcast one and it looks like everything is ok :)<br><br>Thanks to both of you Brad and Michael for you help.<br><br>Guillaume<br><br>