cmake: fix build if workdir is outside of CMAKE_BINARY_DIR (#1284)

this e.g. happens if you would try to compile this like this:

cmake -B build
cmake --build build --config Release
This commit is contained in:
John Zimmermann 2020-06-05 21:54:06 -07:00 committed by GitHub
parent 9288b4a845
commit 590bab8f1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -186,6 +186,7 @@ else()
execute_process(COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/qemu/configure
${EXTRA_CFLAGS}
${TARGET_LIST}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
)
execute_process(COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/qemu/scripts/create_config
INPUT_FILE ${CMAKE_BINARY_DIR}/config-host.mak