You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CMake Error at cmake-build-debug-gcc-10/_deps/tools-src/cmake/SystemLink.cmake:65 (target_link_libraries):
Target "autodiff" of type UTILITY may not be linked into another target.
One may link only to INTERFACE, OBJECT, STATIC or SHARED libraries, or to
executables with the ENABLE_EXPORTS property set.
The problem is that the linked library is eigen's autodiff (inside unsupported/test), not autodiff/autodiff.
The text was updated successfully, but these errors were encountered:
set(EIGEN_BUILD_DOC OFF)
set(BUILD_TESTINGOFF) # This removes the tests and makes autodiff test not collide with autodiff/autodiffset(EIGEN_BUILD_PKGCONFIG OFF)
cpmaddpackage("https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.zip")
cpmaddpackage("gh:autodiff/autodiff@1.0.3")
Turns out there is a (sort of) library "autodiff" inside Eigen 3.4.0.
I added Eigen and autodiff like this:
It returns the error:
The problem is that the linked library is eigen's autodiff (inside unsupported/test), not autodiff/autodiff.
The text was updated successfully, but these errors were encountered: