-
Notifications
You must be signed in to change notification settings - Fork 7.5k
include ITK #22641
Copy link
Copy link
Closed
Labels
category:port-bugThe issue is with a library, which is something the port should already supportThe issue is with a library, which is something the port should already support
Metadata
Metadata
Assignees
Labels
category:port-bugThe issue is with a library, which is something the port should already supportThe issue is with a library, which is something the port should already support
Describe the bug
I used vcpkg to manage the inclusion. In the CMakeLists.txt of my project, I included ITK. But the error occured. The content of CMakeLists is same as the example given by ITK docs.
Environment
Failure logs
The log was given by MSVC
CMake Error at F:/Github/vcpkg/scripts/buildsystems/vcpkg.cmake:540 (_add_executable): Target "TestDll" links to target "GTest::Main" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
Additional context
CMakeLists.txt