[CMake] how to link with a system library ?

Eric Noulard eric.noulard at gmail.com
Sun Sep 21 11:20:19 EDT 2008


2008/9/21 Mike Jackson <mike.jackson at bluequartz.net>:
>>> www.bluequartz.net
>>
>> CMake Error: GTK NOT FOUND
>> -- Configuring done
>> make: *** [cmake_check_build_system] Error 255
>>
>> GTK 2.0 comes into my Kubuntu 8.0.4 system with a standard debian package.
>> Nothing customized. All in standard paths.
>
> I don't know a thing about GTK BUT looking at the FindGTK.cmake file in the
> CMake 2.6 distribution it _looks_ like that module is looking for the gtk
> 1.2 version and NOT the 2.0 version.

That's true :-(

There is bug report about this
http://www.vtk.org/Bug/view.php?id=6042

pointing to this CMake module
http://code.google.com/p/cmake-modules/source/browse/trunk/Modules/GTK2/FindGTK2.cmake

I haven't tested it though.

-- 
Erk


More information about the CMake mailing list