[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.

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/strip

Re: [CMake] CPACK_STRIP_FILES has no effect on DSOs

2011-02-11 Thread Eric Noulard
2011/2/11 Moritz Moeller realr...@virtualritz.com: 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 )

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

[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}

Re: [CMake] CPACK_STRIP_FILES has no effect on DSOs

2011-02-11 Thread Eric Noulard
2011/2/11 Moritz Moeller realr...@virtualritz.com: 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

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] 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 voyage...@gmail.com wrote: I want to upload multiple files and I think to do it with scp.

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: -

[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

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 fast

Re: [CMake] multiple directories in one variable

2011-02-11 Thread John Drescher
On Fri, Feb 11, 2011 at 9:16 AM, Ilja Golshtein ilej...@narod.ru 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

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 li...@milliams.com 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

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] multiple directories in one variable

2011-02-11 Thread David Cole
On Fri, Feb 11, 2011 at 10:29 AM, John Drescher dresche...@gmail.comwrote: 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.

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" david.c...@kitware.com:On Fri, Feb 11, 2011 at 10:29 AM, John Drescher dresche...@gmail.com 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

[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

[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

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 https://github.com/rpavlik/cmake-modules/blob/master/FileCopyTargets.cmakeWhile the command it adds just does a copy, you could run your preprocessor in place of that copy command. Perhaps

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 nmake

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 david.c...@kitware.com wrote: I tried compiling it on Windows yesterday with just the following CMakeLists.txt file, and

[Cmake-commits] CMake branch, next, updated. v2.8.3-1613-g6500866

2011-02-11 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 6500866be0f08c767970c7c5528e80876ba336f7 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.3-1615-g4800f23

2011-02-11 Thread Brad King
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, next has been updated via 4800f23ee3a95ec325511c1f527a524833cefb04 (commit) via

[Cmake-commits] CMake branch, hooks, updated. bc6d41f4d2c9b0c4645aaf6be4d92429bf52fab6

2011-02-11 Thread cmake-commits
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, hooks has been updated via bc6d41f4d2c9b0c4645aaf6be4d92429bf52fab6 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.3-713-g84dafee

2011-02-11 Thread KWSys Robot
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project CMake. The branch, master has been updated via 84dafee565cd49fd26b2018f82059ad5eed99cb1 (commit) from