CaPTk
CaPTk copied to clipboard
Cannot build CaPTk from sources on the cbica cluster
Describe the bug Cannot build CaPTk from sources on the cluster
To Reproduce Steps to reproduce the behavior:
- SuperBuild (Dependencies) Completes
- CaPTk build cmake step configure completes
- Generate gives error as below
CMake Error at CMakeLists.txt:946 (ADD_EXECUTABLE): Target "CaPTk" links to target "Eigen3::Eigen" but the target was not found. Perhaps a find_package() call is missing for an IMPORTED target, or an ALIAS target is missing?
Expected behavior CaPTk should build from sources
Screenshots
If applicable, add screenshots to help explain your problem.
CaPTk Version: 1.8.1
- OS: cbica Cluster
We never ended up solving this issue a couple months back. But since I think it's appropriate to leave a cookie crumb trail for when someones investigates this again...
As part of our superbuild, Eigen is built, but not "installed". This install step typically fills out some templates and places it in a static location somewhere under /usr/ . I don't have the exact path on me... maybe /usr/local/Eigen? I know it's in the CMakeCache.txt file. Anyway, the cluster already has an Eigen installation in that location, and the files & headers from there are being used instead of the ones we create in the superbuild (and naturally are incompatible). As far as I can tell, this issue is rooted in how CMake modules/packages are found: I think the FindEigen3 file is looking for the installed Eigen above all else.