using check_cxx_source_runs

2009-03-12 Thread Leo Franchi
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,

Re: using check_cxx_source_runs

2009-03-12 Thread Alexander Neundorf
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, CMAK

Re: using check_cxx_source_runs

2009-03-12 Thread Leo Franchi
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 12 Mar 2009, at 19:49, Alexander Neundorf wrote: > 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 d

Re: using check_cxx_source_runs

2009-03-12 Thread Alexander Neundorf
On Thursday 12 March 2009, Leo Franchi wrote: > On 12 Mar 2009, at 19:49, Alexander Neundorf wrote: ... > > Can you please post a minimal example ? > > So I can just try and see what goes wrong ? > > Yep, so the source that we are trying to compile is this: > * > * Copyright (C) 2009 Ian Monroe

Re: using check_cxx_source_runs

2009-03-12 Thread Leo Franchi
On 12 Mar 2009, at 20:12, Alexander Neundorf wrote: > On Thursday 12 March 2009, Leo Franchi wrote: >> On 12 Mar 2009, at 19:49, Alexander Neundorf wrote: > ... >>> Can you please post a minimal example ? >>> So I can just try and see what goes wrong ? >> >> Yep, so the source that we are trying t

Re: using check_cxx_source_runs

2009-03-12 Thread Leo Franchi
n 12 Mar 2009, at 20:12, Alexander Neundorf wrote: > On Thursday 12 March 2009, Leo Franchi wrote: >> On 12 Mar 2009, at 19:49, Alexander Neundorf wrote: > ... >>> Can you please post a minimal example ? >>> So I can just try and see what goes wrong ? >> >> >> >> >> and the cmake stuff is this: >>

Re: using check_cxx_source_runs

2009-03-12 Thread Alexander Neundorf
On Thursday 12 March 2009, Leo Franchi wrote: > n 12 Mar 2009, at 20:12, Alexander Neundorf wrote: > > On Thursday 12 March 2009, Leo Franchi wrote: > >> On 12 Mar 2009, at 19:49, Alexander Neundorf wrote: > > > > ... > > > >>> Can you please post a minimal example ? > >>> So I can just try and see

Re: using check_cxx_source_runs

2009-03-12 Thread Leo Franchi
On 12 Mar 2009, at 21:46, Alexander Neundorf wrote: > On Thursday 12 March 2009, Leo Franchi wrote: >> n 12 Mar 2009, at 20:12, Alexander Neundorf wrote: >>> On Thursday 12 March 2009, Leo Franchi wrote: On 12 Mar 2009, at 19:49, Alexander Neundorf wrote: >>> >>> ... >>> > Can you please

Re: using check_cxx_source_runs

2009-03-12 Thread Alexander Neundorf
On Thursday 12 March 2009, Leo Franchi wrote: ... > > Please replace the CheckCXXSourceRuns.cmake which is installed by > > the cmake on > > your system with the one attached to this email. It adds some basic > > handling > > for using imported targets with check_cxx_source_runs(). > > It's not per

Re: using check_cxx_source_runs

2009-03-12 Thread Sune Vuorela
On Thursday 12 March 2009 20:55:20 Leo Franchi wrote: > #include > #include > #include > #include > #include > > #define FAIL 0xA > > int main(int argc, char **argv) > { > KAboutData about( "findgeneratorplugins", "", ki18n("Generator > Exists?"), "1.0", ki18n("Find if the QtScript Plugi

maco_optional_find_package magic

2009-03-12 Thread Jeff Mitchell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Can someone clue me in as to how macro_optional_find_package manages to not have the configure abort (at the end) if the package isn't found? I thought it might be something in KDE4Defaults, but didn't find it in there either. I need to do a check be