Skip to content

[Qhull] Rework configure#1649

Open
maxfirmbach wants to merge 6 commits into4C-multiphysics:mainfrom
maxfirmbach:Rework-Qhull-install
Open

[Qhull] Rework configure#1649
maxfirmbach wants to merge 6 commits into4C-multiphysics:mainfrom
maxfirmbach:Rework-Qhull-install

Conversation

@maxfirmbach
Copy link
Copy Markdown
Contributor

Description and Context

Lets see if this works.

Related Issues and Pull Requests

@maxfirmbach maxfirmbach self-assigned this Jan 9, 2026
@maxfirmbach
Copy link
Copy Markdown
Contributor Author

@sebproell What do you think about the cmake related changes?

@maxfirmbach maxfirmbach added type: enhancement A new feature or enhancement to be implemented dependencies Pull requests that update a dependency file labels Jan 9, 2026
Comment thread cmake/configure/configure_Qhull.cmake
Comment thread cmake/configure/configure_Qhull.cmake
fetchcontent_makeavailable(libqhull)
set(FOUR_C_QHULL_ROOT "${CMAKE_INSTALL_PREFIX}")

four_c_add_external_dependency(four_c_all_enabled_external_dependencies qhull_r)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
four_c_add_external_dependency(four_c_all_enabled_external_dependencies qhull_r)
four_c_add_external_dependency(four_c_all_enabled_external_dependencies QHull::qhull_r)

Does this work? I am looking at https://github.com/qhull/qhull/blob/master/CMakeLists.txt#L744, which gives an export namespace but unfortunately they do not alias the qhull_r target as QHull::qhull_r. Maybe we need to do this ourselves here.

Also, QHull is still installed in the image, right? I think the wrong one is picked up during the install test: https://github.com/4C-multiphysics/4C/actions/runs/20850200696/job/59903586127?pr=1649#step:9:46
which would give you a pretty random result. I would drop the QHull from the image. Afterwards, you probably need to fix the install process here.

Comment thread cmake/configure/configure_Qhull.cmake Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file type: enhancement A new feature or enhancement to be implemented

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants