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

Remove obsolete CMake code related to CMake < 3.0 #1111

Merged
merged 3 commits into from
Jul 19, 2023

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Jul 19, 2023

This is a follow-up of these commits:

  • 3eb055e (COMP: Update CMake required version from 2.8.9 to 3.0 to match its use)
  • 8840276 (COMP: Require CMake >= 3.0 for project building against CTK)
  • bb46b8c (Add support for install-able and relocatable package.)

Summary:

  • Update CTK CMake modules removing support for CMake < 3.0.

  • Remove CTK own implementation of CMakeFindDependencyMacro already provided in CMake >= 3.0.

  • Remove unneeded policy settings already set to NEW by virtue of calling cmake_minimum_required(VERSION 3.0). Since CMake 3.0 implies all polices <= CMP0050 are set to NEW, this commit removes the corresponding code.

  • Remove unneeded CMakePackageConfigHelpers originally introduced to support CMake 2.8.7 missing the module. It was introduced in CMake 2.8.8.

jcfr added 2 commits July 19, 2023 01:05
This is a follow-up of these commits:
* 3eb055e (COMP: Update CMake required version from 2.8.9 to 3.0
  to match its use)
* 8840276 (COMP: Require CMake >= 3.0 for project building against CTK)

Summary:

* Update CTK CMake modules removing support for CMake < 3.0.

* Remove CTK own implementation of CMakeFindDependencyMacro already provided
  in CMake >= 3.0.

* Remove unneeded policy settings already set to NEW by virtue of calling
  cmake_minimum_required(VERSION 3.0). Since CMake 3.0 implies all polices
  <= CMP0050 are set to NEW, this commit removes the corresponding code.
This is introduced as a separated commit so that .git-blame-ignore-revs
can be updated.
@jcfr jcfr force-pushed the remove-obsolete-cmake-code branch from bd5bc16 to 621e8e7 Compare July 19, 2023 05:10
This commit is a follow-up of bb46b8c (Add support for install-able and
relocatable package.) where a copy of CMakePackageConfigHelpers was integrated
to support configuring using CMake 2.8.7.

This was needed because the module CMakePackageConfigHelpers was introduced
in CMake 2.8.8.

Since CMake 3.0 is now required to build or use CTK, ths commit removes
the obsolete logic checking if the CTK copy of CMakePackageConfigHelpers
needed to be included.

The change is consistent with configure output:

[...]
-- Including CMake built-in module CMakePackageConfigHelpers
-- Including CMake built-in module CMakePackageConfigHelpers - ok
[...]
@jcfr jcfr enabled auto-merge (rebase) July 19, 2023 05:29
@jcfr jcfr merged commit 4c8a68f into commontk:master Jul 19, 2023
@jcfr jcfr deleted the remove-obsolete-cmake-code branch July 19, 2023 05:30
@jcfr jcfr linked an issue Jul 19, 2023 that may be closed by this pull request
@jcfr jcfr mentioned this pull request Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Remove Qt4 support
1 participant