DOLFINTargets.cmake incorrect after install
I've just hit a problem with CMake/instant/dolfin when compiling DOLFIN JIT modules. FFC modules compile fine, but DOLFIN modules crash because they try to link to the library in the build tree, instead of the installed location.
make[2]: *** No rule to make target `/home/e319/e319/shared/src/dolfin/build.archer/dolfin/libdolfin.so.1.4.0', needed by `_dolfin_c
ompile_code_2d9ce0f34175f194f3e581fe86557406.so'. Stop.
The filesystem /home is not available at runtime on this system.
The culprit appears to be $INSTALL_PREFIX/share/dolfin/cmake/DOLFINTargets.cmake
which still has the build directory in it, in a variable called IMPORTED_LOCATION_DEVELOPER
. Changing this to the correct library location fixes the problem.
I don't know how to fix this in the source, as it is deep inside some CMake magic, but this is new behaviour compared to 1.3
Comments (6)
-
-
-
- changed status to resolved
Make sure DOLFINTargets.cmake is correct after install (fixes
#343).→ <<cset 73d3dc600081>>
-
- changed status to open
Not fixed until this is in master.
-
- changed status to resolved
Fixed in 4338fe4.
-
- removed milestone
Removing milestone: 1.5 (automated comment)
- Log in to comment
This was introduced in ee2f3ffdd8ba01162b475194f5d742e39766b7dc.