-
Notifications
You must be signed in to change notification settings - Fork 35
Add test for make install target #108
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
Add test for make install target #108
Conversation
3866f4d
to
7ba518d
Compare
test/test_make_install.sh
Outdated
|
||
mkdir ${INSTALL_DIR} | ||
cd ${BUILD_DIR} | ||
make install |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we set DESTDIR here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, it is already set in CMake in the line: -DCMAKE_INSTALL_PREFIX="${{env.INSTL_DIR}}"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hm but what if someone runs this test outside the CI? I think this test should also work in this case or at least we should check if this cmake variable was set before and print an error otherwise.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, we should use make install prefix=${INSTALL_DIR}
here, because DESTDIR
creates whole directory structure starting from root /
inside this subdirectory.
So added make install prefix=${INSTALL_DIR}
Done.
It would be nice to have a simple program/example that we can compile and link against the installed version of UMF (it could be a simple CMake project) |
OK, I will do that in a separate PR. |
Signed-off-by: Lukasz Dorau <[email protected]>
7ba518d
to
801b2f5
Compare
No description provided.