irstlm-team / irstlm

GNU Lesser General Public License v2.1
76 stars 33 forks source link

CMake tries to link libraries in the install prefix even tough they are in default location "../inst" #14

Open OAkyildiz opened 6 years ago

OAkyildiz commented 6 years ago
/usr/bin/ar: /opt/irstlm/lib/libirstlm.a: No such file or directory
src/CMakeFiles/irstlm.dir/build.make:744: recipe for target '/opt/irstlm/lib/libirstlm.a' failed
make[2]: *** [/opt/irstlm/lib/libirstlm.a] Error 1
CMakeFiles/Makefile2:333: recipe for target 'src/CMakeFiles/irstlm.dir/all' failed
make[1]: *** [src/CMakeFiles/irstlm.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2
oakyildiz@oakyildiz-pc:~/

After setting the CMAKE_INSTALL_PREFIX the makefile looks at the wrong location for libirstlm.a