[CMake] "INCLUDE called with wrong number of arguments" error,
please help.
Bill Hoffman
bill.hoffman at kitware.com
Thu Jan 4 14:19:40 EST 2007
kdsfinger at gmail.com wrote:
> hi,
> I recently installed the lapack library on my linux box and would like
> to configure cmake to use it. I steal the FindLapack.cmake file from
> http://www.mip.informatik.uni-kiel.de/~jw/cmake/CMakeModules/FindLAPACK.cmake
>
> (btw, I also use the FindGSL.cmake from there and it works great)
> and put it in the cmake modules folder.
> I have a CMakeList.txt like this:
> ========================================
> PROJECT(ta)
>
> FIND_PACKAGE(GSL)
> INCLUDE(${GSL_INCLUDE_DIR})
You want INCLUDE_DIRECTORIES and not INCLUDE. INCLUDE is for including
cmake code.
-Bill
More information about the CMake
mailing list