using check_cxx_source_runs
Alexander Neundorf
neundorf at kde.org
Thu Mar 12 20:49:24 CET 2009
On Thursday 12 March 2009, Leo Franchi wrote:
> hey,
>
> sorry for the new thread, i just subscribed. i can't figure out how to
> set the library path for the linker, so no matter what I do it always
> fails to find -lQtScript. in the cmake docs i see i can set the vars
> CMAKE_REQUIRED_FLAGS, CMAKE_REQUIRED_DEFINITIONS,
> CMAKE_REQUIRED_INCLUDES, and CMAKE_REQUIRED_LIBRARIES, but even though
> I add the libraries I want to link to the CMAKE_REQUIRED_LIBRARIES
> variable, the paths that are needed to find them are not there.
>
> i'm pretty sure i'm missing something very basic, but I can't get the
> test program to compile.
Can you please post a minimal example ?
So I can just try and see what goes wrong ?
Alex
More information about the Kde-buildsystem
mailing list