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 build fails when doing an in-tree build #265
Comments
I am getting this same error on Solus: |
Well I got it to build and packaged it into eopkg and installed just fine! I had to fork, branch and change some source. I think unrelated but I changed to "CONFIG=release" in src/core/Makefile Cheers! |
@grantdb You don't need to make any source changes, you just build in a separate directory. |
thank you @saintdev but what do you mean in a separate directory? I am doing the build under the Solus packaging chroot and I don't know how to change the directory values in that aspect? |
The cmake 'paradigm' is to create a separate directory for the build process and build there. Something like: Using cmake to build in the source tree is not the recommended cmake way, but it shouldn't fail. Will work on a fix. |
Right my issue is with the solbuild system in Solus, it doesn't like out of source cmake. Otherwise it's fine, if you are not making a eopkg that is, I will look into this. Thank you |
PROJECT_SOURCE_DIR
equalsCMAKE_CURRENT_BINARY_DIR
for in-tree builds. This means the mv at src/core/CMakeLists.txt:91-92 fails because it is attempting to move the file over itself.The text was updated successfully, but these errors were encountered: