Skip to content

Address namespace issue with GoogleTest libraries#5789

Open
blowekamp wants to merge 3 commits intoInsightSoftwareConsortium:mainfrom
blowekamp:gtest_alias_compatibility
Open

Address namespace issue with GoogleTest libraries#5789
blowekamp wants to merge 3 commits intoInsightSoftwareConsortium:mainfrom
blowekamp:gtest_alias_compatibility

Conversation

@blowekamp
Copy link
Member

  • Add depreciation warning for the removed GTest::GTest and GTest::Main targets.
  • Correct the namespace to GTest in ITKTargets.

@blowekamp blowekamp requested a review from N-Dekker February 10, 2026 17:16
@github-actions github-actions bot added type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots area:ThirdParty Issues affecting the ThirdParty module labels Feb 10, 2026
@blowekamp blowekamp force-pushed the gtest_alias_compatibility branch from f54d8de to 9e28fc7 Compare February 10, 2026 17:16
Copy link
Member

@dzenanz dzenanz left a comment

Choose a reason for hiding this comment

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

Mostly looks good.

@blowekamp blowekamp force-pushed the gtest_alias_compatibility branch from 9e28fc7 to 815e9bd Compare February 12, 2026 15:27
@thewtex thewtex added this to the ITK 6.0 Beta 2 milestone Feb 12, 2026
The ITK specific alias were removed, this change restores them with a
deprecated warning.
Change to a function to avoid side effects during call. Use
cmake_parse_arguments to parse additional NAMESPACE argument. Add
detection of existing alias before setting.
Use added NAMESPACE option to itk_module_target to keep GTest
namespace, fixing it being overridden to ITK.
@blowekamp blowekamp force-pushed the gtest_alias_compatibility branch from 815e9bd to df43a58 Compare February 13, 2026 14:57
@blowekamp blowekamp marked this pull request as ready for review February 13, 2026 19:08
@thewtex thewtex requested a review from N-Dekker February 13, 2026 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ThirdParty Issues affecting the ThirdParty module type:Infrastructure Infrastructure/ecosystem related changes, such as CMake or buildbots

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants