[CMake] cmLocalGenerator::GenerateInstallRules() needlessly slow?/missing optimization?

2011-09-07 Thread Andreas Mohr
Hi, just saw that the main cmake_install.cmake contains (at the end): FILE(WRITE [${CMAKE_BINARY_DIR}]/${CMAKE_INSTALL_MANIFEST} ) FOREACH(file ${CMAKE_INSTALL_MANIFEST_FILES}) FILE(APPEND [${CMAKE_BINARY_DIR}]/${CMAKE_INSTALL_MANIFEST} ${file}\n) ENDFOREACH(file) as generated by CMake git

[CMake] Indrect function calls

2011-09-07 Thread Firegurafiku
Is there a way to indirectly call a function which name is a variable? I want to do something like that: function(avr_compiler_gcc_cflags CFLAGS) ... function(avr_compiler_iar_cflags CGLAGS) ... set(COMPILER gcc) call(avr_compiler_${COMPILER}_cflags CFLAGS) Is there exists

Re: [CMake] Indrect function calls

2011-09-07 Thread Eric Noulard
2011/9/7 Firegurafiku fireguraf...@gmail.com: Is there a way to indirectly call a function which name is a variable? I want to do something like that:    function(avr_compiler_gcc_cflags CFLAGS) ...    function(avr_compiler_iar_cflags CGLAGS) ...    set(COMPILER gcc)    

Re: [CMake] novice question: modification of FLAGS rule variable?

2011-09-07 Thread Glenn Coombs
What you can do however is set the variable which uses the FLAGS definition, i.e. CMAKE_C_COMPILE_OBJECT in your example. I have a CMakeLists.txt file where I override the default assembler flags: set(CMAKE_ASM-ATT_COMPILE_OBJECT CMAKE_ASM-ATT_COMPILER ${ASM_SYS_FLAGS} -o OBJECT SOURCE) to use

Re: [CMake] how to inherit includes from other directories

2011-09-07 Thread Glenn Coombs
Could you not create a file in each subdirectory called something like header-deps.cmake ? This file would contain the include_directory() commands necessary for using this module, plus include() commands of other modules that it depends on. So for your example: # utils/b/header-deps.cmake

[CMake] Adding Settings.bundle to an Xcode, iOS project

2011-09-07 Thread Daniel Dekkers
Hi, I'm targeting iOS and wondering how to add a Settings.bundle directory to the project via CMake. The Settings.bundle contains preferences for the app that can be set by the user in the settings pane of the iPhone/iPad device. If i manually add it (right click, add files to [appname]...) in

Re: [CMake] *.so on Mac

2011-09-07 Thread Sean McBride
On Mon, 5 Sep 2011 06:49:45 +0200, Michael Wild said: Shouldn't dynamic libraries on Mac have dylib as their extension? Why does MyLib have an extension so when I use add_library(MyLib MODULE)? Thanks Yifei Because a MODULE is normally a plugin library, and these traditionally have the

Re: [CMake] *.so on Mac

2011-09-07 Thread Bill Hoffman
On 9/7/2011 11:43 AM, Sean McBride wrote: Because a MODULE is normally a plugin library, and these traditionally have the extension .so on Mac. Do they? I just searched all of /System and the only .so I find are in Python.framework. I've been using Macs since the early 90s, I don't recall

[CMake] How to provide multiple targets to CTEST_BUILD() ?

2011-09-07 Thread I. Bue
Because of CDash/CTest's strange Append/Accumulation behaviour with consecutive report submits it would be convenient to provide multiple targets within a single call to CTEST_BUILD(). How to do this correctly? ___ Powered by www.kitware.com Visit other

Re: [CMake] Indrect function calls

2011-09-07 Thread Eric Noulard
2011/9/7 Firegurafiku fireguraf...@gmail.com: Do not forget to CC the ML (or reply to ML). With CMake:  1) you can ask CMake for double evaluation      using nested dollar ($) var value:     Try:     set(COMP1_CFLAGS Whatever)     set(COMP2_CFLAGS OrElse)     set(COMPILER COMP1)    

Re: [CMake] Indrect function calls

2011-09-07 Thread David Cole
There are already these feature requests that seem to cover the exact same topic: http://public.kitware.com/Bug/view.php?id=11845 http://public.kitware.com/Bug/view.php?id=4034 I personally do not think that EVAL adds significant value to the CMake language. And I think it would introduce

[CMake] FYI - From Ninja-build mailing list - Fwd: Proposal: restat rules

2011-09-07 Thread Jean-Christophe Fillion-Robin
-- Forwarded message -- From: Peter Collingbourne pe...@pcc.me.uk Date: Wed, Sep 7, 2011 at 9:17 PM Subject: Proposal: restat rules To: ninja-bu...@googlegroups.com Hi, In this email I'll try to explain one of the oddities of make (which some CMake-based build systems rely on),

Re: [CMake] novice question: modification of FLAGS rule variable?

2011-09-07 Thread David Dunkle
Thanks, Glenn. That almost works. However, the values of FLAGS is hard to construct in this case. It looks something like this: add_library(mylib, STATIC, ${files}) set_target_properties(mylib PROPERTIES PREFIX

Re: [CMake] how to inherit includes from other directories

2011-09-07 Thread Raymond Wan
Hi Glenn, On Wed, Sep 7, 2011 at 20:36, Glenn Coombs glenn.coo...@gmail.com wrote: Could you not create a file in each subdirectory called something like header-deps.cmake ?  This file would contain the include_directory() commands necessary for using this module, plus include() commands of

[Cmake-commits] CMake branch, master, updated. v2.8.5-395-gaccdb85

2011-09-07 Thread David Cole
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 accdb855c293d081580f17ed8521ca20b0dcce0e (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-402-g56ce5de

2011-09-07 Thread David Cole
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 56ce5dec8b9973528ae8b41a77e757c11eff81b1 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-405-ga239fb6

2011-09-07 Thread David Cole
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 a239fb6c16ab075fdbd2f306b3f34369f9087d43 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-409-g103ab60

2011-09-07 Thread David Cole
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 103ab60dd7314f6a75b02dc65d40a99efedc5391 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-420-gf62540a

2011-09-07 Thread David Cole
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 f62540adcc1dd53b66534f6ed7c03b5e5daf1d26 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-428-gdb41546

2011-09-07 Thread David Cole
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 db4154661cfa1baf2596ce4c68ac8a328690245d (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-430-gde62fd1

2011-09-07 Thread David Cole
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 de62fd1b6d268702473b3307f48eb4cefb8c2c5d (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-432-g05bc6bf

2011-09-07 Thread David Cole
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 05bc6bfb87a9afe9c85bd90406fce348a92b7807 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-434-gc80cbad

2011-09-07 Thread David Cole
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 c80cbad15226844c2c518e49656fe19fc52d8d33 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-436-g07eb084

2011-09-07 Thread David Cole
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 07eb08439ddeaaab1115acaf717b52319efdfb13 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-441-gfde0a4d

2011-09-07 Thread David Cole
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 fde0a4ddd104be279600f3a80521169708a84875 (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-443-g4e3d428

2011-09-07 Thread David Cole
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 4e3d428cc30a6a45477720c8153b4f32952ae949 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.5-1855-gabf88b5

2011-09-07 Thread David Cole
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 abf88b50008f60c76aeaa751f2ee20ceab2114c3 (commit) via

[Cmake-commits] CMake branch, next, updated. v2.8.5-1857-gec84345

2011-09-07 Thread David Cole
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 ec8434567837e8305a2d67734d49f0b70ad7fe3b (commit) via

[Cmake-commits] CMake branch, master, updated. v2.8.5-444-g3246dc2

2011-09-07 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 3246dc26651c50cebd99b64ca8fb1a05873f192f (commit) from