Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jun 6, 2020
Merged

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

merged 1 commit into from Jun 6, 2020

Conversation

Johnnynator
Copy link
Contributor

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

cmake -B build
cmake --build build --config Release

@scribam Should fix the remaining CI failures of Vita3K/Vita3K#727

@scribam
Copy link
Contributor

scribam commented Jun 5, 2020

@Johnnynator
🤔 Have you tried it? It does not work for me locally 😕
But I think instead it is necessary to set a WORKING_DIRECTORY for this command COMMAND sh ${CMAKE_CURRENT_SOURCE_DIR}/qemu/configure to fix the failures.

@Johnnynator
Copy link
Contributor Author

Mh... I did try, maybe smth of a different build leaked in. But in that case it should be needed for both.

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

cmake -B build
cmake --build build --config Release
@Johnnynator
Copy link
Contributor Author

This doesn't make any sense why the previous change did work for me. The create_config script is totally workdir independent and just takes stdin/stdout, cmake itself already works with the correct paths.

@aquynh aquynh merged commit 590bab8 into unicorn-engine:master Jun 6, 2020
@aquynh
Copy link
Member

aquynh commented Jun 6, 2020

merged, thanks!

aquynh pushed a commit that referenced this pull request Jun 6, 2020
this e.g. happens if you would try to compile this like this:

cmake -B build
cmake --build build --config Release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants