Skip to content

Header-only: consider CGAL as an imported target (if CMake>=3.11)#3922

Merged
lrineau merged 2 commits intoCGAL:releases/CGAL-4.13-branchfrom
lrineau:Installation-CGAL_is_an_imported_target-GF
May 21, 2019
Merged

Header-only: consider CGAL as an imported target (if CMake>=3.11)#3922
lrineau merged 2 commits intoCGAL:releases/CGAL-4.13-branchfrom
lrineau:Installation-CGAL_is_an_imported_target-GF

Conversation

@lrineau
Copy link
Copy Markdown
Member

@lrineau lrineau commented May 10, 2019

Summary of Changes

Fix the issue cdcseacave/openMVS#425.

When CGAL is used header-only, from another project, the CGALConfig.cmake creates an interface library. With this change, it will be an imported interface library.

Unfortunately, that feature required CMake version 3.11 or later (available only since March 28, 2018).

Release Management

@lrineau lrineau changed the title Header-only: consider CGAL as an imported target Header-only: consider CGAL as an imported target (if CMake>=3.11) May 10, 2019
@cdcseacave
Copy link
Copy Markdown

I can confirm that this fixes OpenMVS

@cdcseacave
Copy link
Copy Markdown

@lrineau can u pls merge this and update the vcpkg port? many libraries depend on this patch to pass compilation tests

@lrineau
Copy link
Copy Markdown
Member Author

lrineau commented May 15, 2019

@cdcseacave commented on May 15, 2019, 2:42 PM GMT+2:

@lrineau can u pls merge this and update the vcpkg port? many libraries depend on this patch to pass compilation tests

I cannot before it is tested successfully by our testsuite process, on all our supported platforms. At best it could be tomorrow afternoon (Paris time).

@maxGimeno can you please merge this in integration?

@cenit
Copy link
Copy Markdown

cenit commented May 17, 2019

wonderful. I was working on a vcpkg port of openmvs and got stuck on this CGAL problem. I am also waiting for this PR to succeed :)

@maxGimeno
Copy link
Copy Markdown
Contributor

@lrineau lrineau added rm only: ready for master For the release team only: that indicates that a PR is about to be merged in 'master' rm only: ready for release branch For the release team only: that indicates that a PR is about to be merged in a release branch labels May 20, 2019
lrineau added a commit that referenced this pull request May 21, 2019
…d_target-GF

Header-only: consider CGAL as an imported target (if CMake>=3.11)
@lrineau lrineau merged commit c2e8365 into CGAL:releases/CGAL-4.13-branch May 21, 2019
@lrineau lrineau removed Under Testing Ready to be tested rm only: ready for release branch For the release team only: that indicates that a PR is about to be merged in a release branch labels May 21, 2019
@lrineau lrineau deleted the Installation-CGAL_is_an_imported_target-GF branch May 21, 2019 14:42
@lrineau lrineau removed the rm only: ready for master For the release team only: that indicates that a PR is about to be merged in 'master' label May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants