Skip to content
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

Update CMake build dependencies: Remove include(CTest) (/w enable_testing() still set) and fix Google Benchmark #162

Merged
merged 2 commits into from
Oct 25, 2024

Conversation

thbeu
Copy link
Contributor

@thbeu thbeu commented Oct 25, 2024

  1. CTest dependency is not required and considered controversial because it introduces extra build targets
  2. Google Benchmark can no longer be downloaded with shallow flag set

@thbeu thbeu changed the title Update CMake build dependencies; Remove CTest and fix Google Benchmark Update CMake build dependencies: Remove CTest and fix Google Benchmark Oct 25, 2024
@rouault
Copy link
Member

rouault commented Oct 25, 2024

  1. CTest dependency is not required and considered controversial because it introduces extra build targets

really ? by whom ? Or is it just "include(CTest)"? But isn't that necessary to run ctest?

@thbeu
Copy link
Contributor Author

thbeu commented Oct 25, 2024

  1. CTest dependency is not required and considered controversial because it introduces extra build targets

really ? by whom ? Or is it just "include(CTest)"? But isn't that necessary to run ctest?

I read about it here and here, for example.

@rouault
Copy link
Member

rouault commented Oct 25, 2024

I read about it here and here, for example.

ok, thanks, Craig Scott is indeed an authoritative source regarding CMake topics. So just enable_testing() as we do is fine

@thbeu thbeu changed the title Update CMake build dependencies: Remove CTest and fix Google Benchmark Update CMake build dependencies: Remove include(CTest) (/w enable_testing() still set) and fix Google Benchmark Oct 25, 2024
@rouault rouault merged commit 0d55f04 into OSGeo:master Oct 25, 2024
12 checks passed
rouault added a commit to rouault/gdal that referenced this pull request Oct 25, 2024
According to Craig Scott in https://discourse.cmake.org/t/is-there-any-reason-to-prefer-include-ctest-or-enable-testing-over-the-other/1905/2 ,
using include(CTest) adds unnecessary clutter that is only needed for
dashboard submission. enable_testing() is enough otherwise

"Port" of OSGeo/shapelib#162
rouault added a commit to rouault/PROJ that referenced this pull request Oct 25, 2024
According to Craig Scott in https://discourse.cmake.org/t/is-there-any-reason-to-prefer-include-ctest-or-enable-testing-over-the-other/1905/2 ,
using include(CTest) adds unnecessary clutter that is only needed for
dashboard submission. enable_testing() is enough otherwise

"Port" of OSGeo/shapelib#162
rouault added a commit to rouault/gdal that referenced this pull request Oct 25, 2024
According to Craig Scott in https://discourse.cmake.org/t/is-there-any-reason-to-prefer-include-ctest-or-enable-testing-over-the-other/1905/2 ,
using include(CTest) adds unnecessary clutter that is only needed for
dashboard submission. enable_testing() is enough otherwise

"Port" of OSGeo/shapelib#162
rouault added a commit to rouault/PROJ that referenced this pull request Oct 25, 2024
According to Craig Scott in https://discourse.cmake.org/t/is-there-any-reason-to-prefer-include-ctest-or-enable-testing-over-the-other/1905/2 ,
using include(CTest) adds unnecessary clutter that is only needed for
dashboard submission. enable_testing() is enough otherwise

"Port" of OSGeo/shapelib#162
@rouault
Copy link
Member

rouault commented Oct 25, 2024

@thbeu #163 is needed as a follow up

rouault added a commit to rouault/geos that referenced this pull request Oct 25, 2024
According to Craig Scott in https://discourse.cmake.org/t/is-there-any-reason-to-prefer-include-ctest-or-enable-testing-over-the-other/1905/2 ,
using include(CTest) adds unnecessary clutter that is only needed for
dashboard submission. enable_testing() is enough otherwise

"Port" of OSGeo/shapelib#162
@thbeu thbeu deleted the remove-ctest branch October 25, 2024 19:55
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.

2 participants