Skip to content

Wrong ITKGoogleTest_LIBRARIES value in ITKGoogleTest.cmake #303

@yurivict

Description

@yurivict

InsightToolkit-4.13.0 installs the file lib/cmake/ITK-4.13/Modules/ITKGoogleTest.cmake that contains this line:

set(ITKGoogleTest_LIBRARIES "GTest::GTest;GTest::Main")

The xx_LIBRARIES clause is expected to contain paths to the libraries, and can't contain "::".

Depending projects fail like this:

CMake Error at libsrc/CMakeLists.txt:46 (add_library):
  Target "dcmqi" links to target "GTest::GTest" but the target was not found.
  Perhaps a find_package() call is missing for an IMPORTED target, or an
  ALIAS target is missing?

FreeBSD 11.2 amd64
ITK installed from the port.
This also happened before 4.13.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ThirdPartyIssues affecting the ThirdParty module

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions