[CMake] "INCLUDE called with wrong number of arguments" error, please help.

Alexander Neundorf a.neundorf-work at gmx.net
Thu Jan 4 17:11:41 EST 2007


Hi,

Von: kdsfinger at gmail.com

...
> However, when I make the program, I got the following message seems
> there is a link problem:
> $ make
> Scanning dependencies of target test
> [100%] Building C object CMakeFiles/test.dir/testunsymm.o
> Linking C executable test
> /usr/bin/ld: cannot find -llapack
> collect2: ld returned 1 exit status
> make[2]: *** [test] Error 1
> make[1]: *** [CMakeFiles/test.dir/all] Error 2
> make: *** [all] Error 2
> 
> Why it can not find the lapack package? Is there something wrong with
> CMakeLists.txt? Thanks for comments.

Please do a "make VERBOSE=1" so we can see the full command.
I would guess that FindLAPACK.cmake sets LAPACK_LIBRARIES simply to "-llapack", instead of the full path to the library. Have a look at FindLAPACK.cmake and check whether it uses FIND_LIBRARY() to set LAPACK_LIBRARIES.

Bye
Alex

-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer


More information about the CMake mailing list