Re: [CMake] Selectively adding source files and compiling assembly sources

2012-05-28 Thread Johannes Bauer
On 28.05.2012 11:34, Alexander Neundorf wrote: >> the only solution I can think of is something like: >> >> # >> option(WITH_A ...) >> option(WITH_B ...) >> >> set(MySources always/present/files ...) >> >> if(WITH_A) >> list(APPEND MySources files/for/a ...) >> endif() >> >> if(WITH_B) >> list

Re: [CMake] Why is Ninja generator disabled by default?

2012-05-28 Thread Claus Klein
Please tack a lock at my builds tooAll of this errors are NOT caused by ninja!http://open.cdash.org/buildSummary.php?buildid=2315144But with ninja I get the same result.Some of the errors are caused by the fact that I use the current gcc47 compiler (build with macports), which does not understand t

Re: [CMake] a cmake install question

2012-05-28 Thread Alexander Neundorf
On Monday 28 May 2012, luxInteg wrote: > Greetings, > > A cmake install question:- > > When installing say an unknown package (one where only installation prefix > is described) appart from such $CMAKE_INSTALL_DIRECTORY (or prefix), > are there 'generic' swithes to fix other directories such

[CMake] a cmake install question

2012-05-28 Thread luxInteg
Greetings, A cmake install question:- When installing say an unknown package (one where only installation prefix is described) appart from such $CMAKE_INSTALL_DIRECTORY (or prefix), are there 'generic' swithes to fix other directories such as --sysconfdir (normally /etc) --mandir (usually

Re: [CMake] Selectively adding source files and compiling assembly sources

2012-05-28 Thread Alexander Neundorf
On Monday 28 May 2012, Petr Kmoch wrote: > Hi Johannes, > > the only solution I can think of is something like: > > # > option(WITH_A ...) > option(WITH_B ...) > > set(MySources always/present/files ...) > > if(WITH_A) > list(APPEND MySources files/for/a ...) > endif() > > if(WITH_B) > lis

Re: [CMake] the list parameter passed to function

2012-05-28 Thread Petr Kmoch
On Sun, May 27, 2012 at 3:23 PM, Marmot Ken wrote: > Sorry.  Copy-paste error kicks my ass. > > >  Output expected : > >   SRC_LIST : ./a.cpp;./c.cpp;./main.cpp >   src_list_in : ./a.cpp;./c.cpp;./main.cpp > > Now i got the solution. > > invoke the function like this : > >   AUX_SOURCE_DIRECTORY(

Re: [CMake] Selectively adding source files and compiling assembly sources

2012-05-28 Thread Petr Kmoch
Hi Johannes, the only solution I can think of is something like: # option(WITH_A ...) option(WITH_B ...) set(MySources always/present/files ...) if(WITH_A) list(APPEND MySources files/for/a ...) endif() if(WITH_B) list(APPEND MySources files/for/b ...) endif() add_executable(MyExec ${MySo