-
Notifications
You must be signed in to change notification settings - Fork 63
[Qhull] Rework configure #1649
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
base: main
Are you sure you want to change the base?
[Qhull] Rework configure #1649
Changes from all commits
7aa6988
ad6bca3
6b8cb84
8fd9c38
0c660ef
7ae92a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -5,13 +5,25 @@ | |||||
| # | ||||||
| # SPDX-License-Identifier: LGPL-3.0-or-later | ||||||
|
|
||||||
| find_package(Qhull REQUIRED) | ||||||
| message(STATUS "Fetch content for Qhull") | ||||||
|
|
||||||
| if(QHULL_FOUND) | ||||||
| message(STATUS "QHULL include directory: ${QHULL_INCLUDE_DIR}") | ||||||
| message(STATUS "QHULL library directory: ${QHULL_LIBRARY}") | ||||||
| cmake_policy(SET CMP0077 NEW) | ||||||
|
|
||||||
| target_link_libraries(four_c_all_enabled_external_dependencies INTERFACE qhull::qhull) | ||||||
| set(QHULL_ENABLE_TESTING "OFF") | ||||||
| set(BUILD_APPLICATIONS "OFF") | ||||||
| set(BUILD_STATIC_LIBS "OFF") | ||||||
| set(LINK_APPS_SHARED "OFF") | ||||||
| set(BUILD_SHARED_LIBS "ON") | ||||||
|
|
||||||
| four_c_remember_variable_for_install(QHULL_INCLUDE_DIR QHULL_LIBRARY) | ||||||
| endif() | ||||||
| fetchcontent_declare( | ||||||
| libqhull | ||||||
| GIT_REPOSITORY https://github.com/qhull/qhull.git | ||||||
| GIT_TAG a22c735d6a8d1b5eac5773790aeae28f3b088655 #v8.1-alpha1 | ||||||
| ) | ||||||
|
|
||||||
| fetchcontent_makeavailable(libqhull) | ||||||
| set(FOUR_C_QHULL_ROOT "${CMAKE_INSTALL_PREFIX}") | ||||||
|
|
||||||
| four_c_add_external_dependency(four_c_all_enabled_external_dependencies qhull_r) | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
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 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 |
||||||
|
|
||||||
| four_c_remember_variable_for_install(FOUR_C_QHULL_ROOT) | ||||||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.