Skip to content

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

Merged

Conversation

ldorau
Copy link
Contributor

@ldorau ldorau commented Jan 8, 2024

No description provided.

@ldorau ldorau requested a review from a team as a code owner January 8, 2024 10:15
@ldorau ldorau force-pushed the Add_test_for_make_install_target branch from 3866f4d to 7ba518d Compare January 8, 2024 11:03
@ldorau ldorau mentioned this pull request Jan 8, 2024
2 tasks

mkdir ${INSTALL_DIR}
cd ${BUILD_DIR}
make install
Copy link
Contributor

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?

Copy link
Contributor Author

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}}"

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@igchor
Copy link
Member

igchor commented Jan 8, 2024

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)

@ldorau
Copy link
Contributor Author

ldorau commented Jan 8, 2024

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.

@ldorau ldorau force-pushed the Add_test_for_make_install_target branch from 7ba518d to 801b2f5 Compare January 8, 2024 17:59
@bratpiorka bratpiorka merged commit e83c6a0 into oneapi-src:main Jan 9, 2024
@ldorau ldorau deleted the Add_test_for_make_install_target branch January 9, 2024 08:10
@ldorau
Copy link
Contributor Author

ldorau commented Jan 10, 2024

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.

@igchor see: #120

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.

3 participants