Re: [CMake] Ninja: a small build system closest in spirit to Make

2011-02-11 Thread Clifford Yapp
We could start with the CMakeLists.txt file :-). It doesn't want to do an out of source dir build either, have to see why... On Fri, Feb 11, 2011 at 9:58 AM, David Cole wrote: > > I tried compiling it on Windows yesterday with just the following > CMakeLists.txt file, and there were a bunch of c

Re: [CMake] Cross-compiling: Cmake compiler and ABI check don´t work

2011-02-11 Thread Alexander Neundorf
On Friday 11 February 2011, Schmid Alexander wrote: > Hi, > > > > I am working with CMake 2.8.3 and trying to set up a cross-compiling > toolchain for an ARMCC that runs on a Windows system. > > > > What I´ve done up to now is that I set up a toolchain file that I am using > in combination with nma

Re: [CMake] qt moc like feature

2011-02-11 Thread Ryan Pavlik
You might want to look at this: https://github.com/rpavlik/cmake-modules/blob/master/FileCopyTargets.cmake While the command it adds just does a copy, you could run your preprocessor in place of that copy command. Perhaps

[CMake] qt moc like feature

2011-02-11 Thread Dietmar Hummel
Hi list! Hopefulle you can help me with a problem I could not figure out how to do. With a self written preprocessor, we add some generated code to our software. This means the preprocessor is looking into the cpp files and is creating additional code depending on some special marker found in

[CMake] lexical scoping/closure of FUNCTION

2011-02-11 Thread Matt Darland
In the example below it appears the ${${target}} is evaluating the variable name in ${target} within the scope of the local function, not in the context of the caller as I would have expected. This is apparently caused by the fact that both functions have local variables named _dest. It's easier to

Re: [CMake] multiple directories in one variable

2011-02-11 Thread Ilja Golshtein
David, thank you so much! It does work! 11.02.2011, 18:37, "David Cole" :On Fri, Feb 11, 2011 at 10:29 AM, John Drescher wrote:> it is what I want. > But how? > > How can I "put all the directories in EXTERNAL_PRODUCT_INCLUDES" from cmake command line? > I do not know. Sorry.

Re: [CMake] multiple directories in one variable

2011-02-11 Thread David Cole
On Fri, Feb 11, 2011 at 10:29 AM, John Drescher wrote: > > it is what I want. > > But how? > > > > How can I "put all the directories in EXTERNAL_PRODUCT_INCLUDES" from > cmake command line? > > > > I do not know. Sorry. I did not see that you were trying to add these > via the command line. I nev

Re: [CMake] multiple directories in one variable

2011-02-11 Thread John Drescher
> it is what I want. > But how? > > How can I "put all the directories in EXTERNAL_PRODUCT_INCLUDES" from cmake > command line? > I do not know. Sorry. I did not see that you were trying to add these via the command line. I never use that mode of cmake. John _

Re: [CMake] Ninja: a small build system closest in spirit to Make

2011-02-11 Thread David Cole
On Fri, Feb 11, 2011 at 9:17 AM, Matt Williams wrote: > On Thursday 10 Feb 2011 14:38:55 Nicolas Desprès wrote: > > Hi everyone, > > > > Probably some of you are already aware of this new open-source project > > coming from a Chrome developer at Google. > > > > Its goal was to improve the build s

Re: [CMake] multiple directories in one variable

2011-02-11 Thread Ilja Golshtein
John, it is what I want. But how? How can I "put all the directories in EXTERNAL_PRODUCT_INCLUDES" from cmake command line? Thanks. 11.02.2011, 17:24, "John Drescher" : > On Fri, Feb 11, 2011 at 9:16 AM, Ilja Golshtein ; wrote: > >>  Hello! >> >>  I use a product which (depending on installat

Re: [CMake] --debug-trycompile causes false positives from check_function_exists

2011-02-11 Thread Jack Poulson
On Fri, Feb 11, 2011 at 6:00 AM, David Cole wrote: > To use "--debug-trycompile" effectively, you have to: > > - run *without* "--debug-trycompile" all the way through once to establish > all the cache settings > - remove/delete the *single* cache entry whose try_compile result you are > trying t

Re: [CMake] multiple directories in one variable

2011-02-11 Thread John Drescher
On Fri, Feb 11, 2011 at 9:16 AM, Ilja Golshtein wrote: > Hello! > > I use a product which (depending on installation type) can keep headers in > several directories. > > What is the best way to specify these directories? > > Do I have better option than variables EXTERNAL_PRODUCT_INCLUDE_1 > EXT

Re: [CMake] Ninja: a small build system closest in spirit to Make

2011-02-11 Thread Matt Williams
On Thursday 10 Feb 2011 14:38:55 Nicolas Desprès wrote: > Hi everyone, > > Probably some of you are already aware of this new open-source project > coming from a Chrome developer at Google. > > Its goal was to improve the build system performance of the Chrome > project. So it is designed to be a

[CMake] multiple directories in one variable

2011-02-11 Thread Ilja Golshtein
Hello! I use a product which (depending on installation type) can keep headers in several directories. What is the best way to specify these directories? Do I have better option than variables EXTERNAL_PRODUCT_INCLUDE_1 EXTERNAL_PRODUCT_INCLUDE_2 ... listed as include_directories(EXTERNAL_PROD

Re: [CMake] --debug-trycompile causes false positives from check_function_exists

2011-02-11 Thread David Cole
To use "--debug-trycompile" effectively, you have to: - run *without* "--debug-trycompile" all the way through once to establish all the cache settings - remove/delete the *single* cache entry whose try_compile result you are trying to debug - run again with "--debug-trycompile" The reasons are:

Re: [CMake] upload multiple files

2011-02-11 Thread Johan Björk
Use FILE(GLOB) to get a list of files first. Don't recall if you can specify multiple files with scp, but if not, you can always use a foreach(). -Johan On Fri, Feb 11, 2011 at 11:28 AM, Mihai Sandu wrote: > I want to upload multiple files and I think to do it with scp. > > function (SSHUpload

Re: [CMake] add_subdirectory and eclipse project

2011-02-11 Thread Andrea Galeazzi
Alexander Neundorf ha scritto: On Wednesday 09 February 2011, Andrea Galeazzi wrote: Il 08/02/2011 17.58, Alexander Neundorf ha scritto: On Tuesday 08 February 2011, Andrea Galeazzi wrote: Il 18/01/2011 19.17, Alexander Neundorf ha scritto: On Tuesday 18 January 2011,

Re: [CMake] CPACK_STRIP_FILES has no effect on DSOs

2011-02-11 Thread Eric Noulard
2011/2/11 Moritz Moeller : > On 02/11/2011 10:57 AM, Eric Noulard wrote: >> Which kind of CPack package are you building? >> DEB, RPM, TGZ, etc... > > I am building a tbz2. > But this should happen long before the package is compressed, innit. Nope. With CPACK_STRIP_FILES strip is called by CPack

[CMake] upload multiple files

2011-02-11 Thread Mihai Sandu
I want to upload multiple files and I think to do it with scp. function (SSHUpload WORKDIR HOST USERNAME SOURCE DESTINATION) find_program( SCP_PATH NAMES scp ) execute_process(WORKING_DIRECTORY ${WORKDIR} COMMAND ${SCP_PATH} ${SOURCE} ${USERNAME}@${HOST}:${DESTINATION}

Re: [CMake] CPACK_STRIP_FILES has no effect on DSOs

2011-02-11 Thread Moritz Moeller
On 02/11/2011 10:57 AM, Eric Noulard wrote: > Which kind of CPack package are you building? > DEB, RPM, TGZ, etc... I am building a tbz2. But this should happen long before the package is compressed, innit. > Would you be able to craft a simple project reproducing the problem? Not sure. This is

Re: [CMake] CPACK_STRIP_FILES has no effect on DSOs

2011-02-11 Thread Eric Noulard
2011/2/11 Moritz Moeller : > On 02/11/2011 09:56 AM, Moritz Moeller wrote: >> None of the DSOs gets stripped. Is this intentional with shared libs? >> Any workaround or anything I am missing? > > So I worked around this myself by setting > >  set( CMAKE_MODULE_LINKER_FLAGS -s ) > > And I am aware I

Re: [CMake] CPACK_STRIP_FILES has no effect on DSOs

2011-02-11 Thread Moritz Moeller
On 02/11/2011 09:56 AM, Moritz Moeller wrote: > None of the DSOs gets stripped. Is this intentional with shared libs? > Any workaround or anything I am missing? So I worked around this myself by setting set( CMAKE_MODULE_LINKER_FLAGS -s ) And I am aware I can manually do a make install/stri

[CMake] CPACK_STRIP_FILES has no effect on DSOs

2011-02-11 Thread Moritz Moeller
I use CMake 2.8.1 on Linux64. I set this like so: set( CPACK_STRIP_FILES TRUE ) in the CMakeLists.txt which has all the settings for the packager (and which all have the expected effects, otherwise). My project only builds shared libraries (DSOs, .so extension), no direct executable files. No