[CMake] Ralph Barth/AEH/DBS/GDB ist außer Haus.

2011-06-07 Thread Ralph . Barth
Ralph Barth will be out of the office starting 08.06.2011 and will be returning on 09.06.2011. Ich werde Ihre Nachrichten nach meiner Rückkehr beantworten. - Deutsche Börse AG Chairman of the Supervisory Board/ Vorsitzende

[CMake] submit after partial buildup

2011-06-07 Thread Ilias Miroslav
Dear CMake developers, for our oproject we are utilizing the 'make Exerimental' and 'make Nigthly' commands to make the all (update)/configure/build/test and sending report steps. One can see that on our CDash-board, like https://repo.ctcc.no/CDash/index.php?project=DIRAC&date=2011-06-07 How

[CMake] include_directories(SYSTEM, GNU.cmake and -isystem for C (not CXX)

2011-06-07 Thread Campbell Barton
There were some system headers giving warnings compiling on linux, since I like to have warnings as errors, and not edit system headers, I used: include_directories(SYSTEM dir1 dir2 ...) ... for system directories only. However this does not result in -isystem being used in C because GNU.cmake do

[CMake] ToolChain file scope

2011-06-07 Thread dfurtney
I have been hammergin on a vxworks cross-compile toolchain file. It seems that not all properties that are set in the cross-compilation file propogate to the CMakeLists.txt file that is using it. An example is the CMAKE_AR property. Setting it in the cross-compilation file had no effect and the

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-07 Thread t m
> I think the big problem is that this will only work correctly in makefile > based systems.  So, VS and Xcode will not work with this version of the Cuda > stuff. I understand that you would like to avoid merge changes that potentially are not adopted to all platforms/IDEs supported by CMake itsel

[CMake] Binary packages naming convention

2011-06-07 Thread Jean-Christophe Fillion-Robin
Hi Folks, I observed there are different ways of naming binary packages: myproject-Linux-i386.{ext} myproject-Linux-amd64.{ext} myproject-Linux-x86_32.{ext} myproject-Linux-x86_64.{ext} myproject-Windows-win32_x86.{ext} myproject-Windows-win64_x86.{ext} myproject-Windows-win

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Bjørn Forsman
2011/6/7 Michael Wild : > If the FindXXX.cmake file called add_definitions(), > include_directories() et al., that could be potentially harmful. Some > sources might required that some define is not set, or a wrong header > file might be #include'ed (thing of all the different X.h that exist). > Fi

Re: [CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-07 Thread Bill Hoffman
On 6/7/2011 2:50 PM, t m wrote: Hi I've two topics related to the support for custom lang in cmake. I hope you can help me. 1) Does anyone knows plan about merge the following feature related to the CUDA: http://public.kitware.com/Bug/view.php?id=11887 I'm in the process of integrating the CUD

[CMake] Apple WWDC 2011

2011-06-07 Thread David Cole
Hey CMake Mac fans, I am at Apple's WWDC 2011 conference this week in San Francisco -- if you are too, and you'd like to meet up, let me know... Reply just to me so we don't get too much list traffic. Cheers, David C. ___ Powered by www.kitware.com

[CMake] Support for Custom LANG in CMAKE (CUDA and general case)

2011-06-07 Thread t m
Hi I've two topics related to the support for custom lang in cmake. I hope you can help me. 1) Does anyone knows plan about merge the following feature related to the CUDA: http://public.kitware.com/Bug/view.php?id=11887 I'm in the process of integrating the CUDA Toolkit into our build environme

Re: [CMake] Give program path of data directory at installation time

2011-06-07 Thread Jordi Gutiérrez Hermoso
2011/6/7 Jordi Gutiérrez Hermoso : > I have a Python script $program that should be installed under bin/, > but it needs a lot of data that should be installed under > share/$program/. I would like for the install Makefile target to > somehow modify $program to let it know the absolute pathname of

[CMake] CMakeDetermineVSServicePack.cmake

2011-06-07 Thread aaron . meadows
I've reopened Issue 0011279. CMakeDetermineVSServicePack.cmake has been broken again, this time by VS2010 switching to MSBuild. This has caused the version string to change. I've created a patch and uploaded it to the Issue: --8ß-

[CMake] Managed C++/CLI, default build flags and configurations

2011-06-07 Thread David Hunter
Hi, I have a number of projects which contain mostly sub-directories with standard C++. I currently build all this stuff on Linux and Windows and everything is great. However I have a couple of directories in these projects which contain managed C++/CLI code so that I can expose the unmanaged C++

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Marcus D. Hanwell
2011/6/7 Michael Wild : > On 06/07/2011 06:23 PM, Bjørn Forsman wrote: >> 2011/6/7 Michael Wild : >>> On 06/07/2011 03:38 PM, Bjørn Forsman wrote: Why not put find_package(Qt4) in the sub directories where it is actually used? >>> >>> And if it is used in multiple subdirectories? >> >> W

[CMake] How to set a preprocessor define for all build configurations except one ?

2011-06-07 Thread Glenn Coombs
I want to have a preprocessor symbol (GEN_OUTFILES) defined for all build configurations except one (ReleaseNoOutfiles). Before I added the ReleaseNoOutfiles configuration I just had this line in my top level CMakeLists.txt: add_definitions(-DGEN_OUTFILES) but now I have to have this complicated

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Michael Wild
On 06/07/2011 06:23 PM, Bjørn Forsman wrote: > 2011/6/7 Michael Wild : >> On 06/07/2011 03:38 PM, Bjørn Forsman wrote: >>> Why not put find_package(Qt4) in the sub directories where it is actually >>> used? >> >> And if it is used in multiple subdirectories? > > What's bad about that? (Sorry, I r

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Bjørn Forsman
On 7 June 2011 16:32, Rolf Eike Beer wrote: >> Hi all, >> >> As far as I can tell, all Qt programs built with CMake must include >> QT_USE_FILE after find_package(). So why doesn't FindQt4.cmake simply >> include QT_USE_FILE itself? Is there maybe a use case where >> QT_USE_FILE is *not* wanted? >

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Bjørn Forsman
2011/6/7 Michael Wild : >On 06/07/2011 03:38 PM, Bjørn Forsman wrote: >> Why not put find_package(Qt4) in the sub directories where it is actually >> used? > > And if it is used in multiple subdirectories? What's bad about that? (Sorry, I really don't know). > FindXXX.cmake modules should only d

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Rolf Eike Beer
> Hi all, > > As far as I can tell, all Qt programs built with CMake must include > QT_USE_FILE after find_package(). So why doesn't FindQt4.cmake simply > include QT_USE_FILE itself? Is there maybe a use case where > QT_USE_FILE is *not* wanted? Besides the points already given here is another ex

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Michael Wild
On 06/07/2011 04:11 PM, Marcus D. Hanwell wrote: > On Tue, Jun 7, 2011 at 9:46 AM, Michael Wild wrote: >> On 06/07/2011 03:21 PM, John Drescher wrote: If you don't care for the macros and want to set up the include-directories and defines yourself, no. Also, it is common to find_pac

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Marcus D. Hanwell
On Tue, Jun 7, 2011 at 9:46 AM, Michael Wild wrote: > On 06/07/2011 03:21 PM, John Drescher wrote: >>> If you don't care for the macros and want to set up the >>> include-directories and defines yourself, no. Also, it is common to >>> find_package(Qt4) in the top-level CMakeLists.txt file, but the

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Michael Wild
On 06/07/2011 03:47 PM, Bjørn Forsman wrote: > On 7 June 2011 15:21, John Drescher wrote: >>> If you don't care for the macros and want to set up the >>> include-directories and defines yourself, no. Also, it is common to >>> find_package(Qt4) in the top-level CMakeLists.txt file, but then include

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Michael Wild
On 06/07/2011 03:38 PM, Bjørn Forsman wrote: > Thanks for a quick reply! > > On 7 June 2011 14:52, Michael Wild wrote: >> On 06/07/2011 02:20 PM, Bjørn Forsman wrote: >>> As far as I can tell, all Qt programs built with CMake must include >>> QT_USE_FILE after find_package(). So why doesn't FindQ

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Bjørn Forsman
On 7 June 2011 15:21, John Drescher wrote: >> If you don't care for the macros and want to set up the >> include-directories and defines yourself, no. Also, it is common to >> find_package(Qt4) in the top-level CMakeLists.txt file, but then include >> QT_USE_FILE only in specific subdirectories, w

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Michael Wild
On 06/07/2011 03:21 PM, John Drescher wrote: >> If you don't care for the macros and want to set up the >> include-directories and defines yourself, no. Also, it is common to >> find_package(Qt4) in the top-level CMakeLists.txt file, but then include >> QT_USE_FILE only in specific subdirectories,

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Bjørn Forsman
Thanks for a quick reply! On 7 June 2011 14:52, Michael Wild wrote: > On 06/07/2011 02:20 PM, Bjørn Forsman wrote: >> As far as I can tell, all Qt programs built with CMake must include >> QT_USE_FILE after find_package(). So why doesn't FindQt4.cmake simply >> include QT_USE_FILE itself? Is ther

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread John Drescher
> If you don't care for the macros and want to set up the > include-directories and defines yourself, no. Also, it is common to > find_package(Qt4) in the top-level CMakeLists.txt file, but then include > QT_USE_FILE only in specific subdirectories, where Qt is actually used. > I have started doin

Re: [CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Michael Wild
On 06/07/2011 02:20 PM, Bjørn Forsman wrote: > Hi all, > > As far as I can tell, all Qt programs built with CMake must include > QT_USE_FILE after find_package(). So why doesn't FindQt4.cmake simply > include QT_USE_FILE itself? Is there maybe a use case where > QT_USE_FILE is *not* wanted? > > B

[CMake] FindQt4.cmake to automatically include QT_USE_FILE?

2011-06-07 Thread Bjørn Forsman
Hi all, As far as I can tell, all Qt programs built with CMake must include QT_USE_FILE after find_package(). So why doesn't FindQt4.cmake simply include QT_USE_FILE itself? Is there maybe a use case where QT_USE_FILE is *not* wanted? Best regards, Bjørn Forsman __

Re: [CMake] cmake - preventing `make clean` from cleaning ExternalProject.

2011-06-07 Thread Rolf Eike Beer
> I was wondering if there's some way to prevent make clean in cmake from > re-building external dependencies. I'm using ExternalProject to build > third > party c++ libraries, and they do not have to be rebuilt even if I do make > clean. > > On the other hand, I might want to create a new rule, sa

Re: [CMake] (no subject)

2011-06-07 Thread Yuri Timenkov
Unfortunately you can get only list of source files (using SOURCES target's property). The location of object files depends on Generator (e.g. for VisualStudio they will be put into configuration-specific location). On Tue, Jun 7, 2011 at 12:32 AM, wrote: > Does CMake provide a way to get the li

Re: [CMake] Sharing configuration files?

2011-06-07 Thread Raymond Wan
Hi Hendrik, On Tue, Jun 7, 2011 at 17:17, Hendrik Sattler wrote: > Zitat von Raymond Wan : >> Hm, I never thought of the first option!  So if I am understanding >> your suggestion correctly, this basically means that in X's class >> definition, it has an entry like: >> >> Y* instance_y; >> >

Re: [CMake] Sharing configuration files?

2011-06-07 Thread Hendrik Sattler
Zitat von Raymond Wan : Hi Hendrik, Thank you for the suggestions! On Tue, Jun 7, 2011 at 17:02, Hendrik Sattler wrote: Zitat von Raymond Wan : I think/hope so far things are ok...  I can compile Y and run it with no problems.  The problem is that X needs access to this generated configu

Re: [CMake] Sharing configuration files?

2011-06-07 Thread Raymond Wan
Hi Hendrik, Thank you for the suggestions! On Tue, Jun 7, 2011 at 17:02, Hendrik Sattler wrote: > Zitat von Raymond Wan : >> I think/hope so far things are ok...  I can compile Y and run it with >> no problems.  The problem is that X needs access to this generated >> configuration file, too.  A

Re: [CMake] cmake - preventing `make clean` from cleaning ExternalProject.

2011-06-07 Thread Alexander Neundorf
On Tuesday, June 07, 2011 04:41:03 AM jeeyoung kim wrote: > I was wondering if there's some way to prevent make clean in cmake from > re-building external dependencies. I'm using ExternalProject to build third > party c++ libraries, and they do not have to be rebuilt even if I do make > clean. > >

Re: [CMake] Sharing configuration files?

2011-06-07 Thread Hendrik Sattler
Zitat von Raymond Wan : Hi all, I'm having a problem which I can't quite figure out how to solve. Basically, I have C++ source code in two directories, each for a different class. Let's say: src/X src/Y Each one makes a different class but ultimately X makes use of Y (i.e., an instance of Y

[CMake] Give program path of data directory at installation time

2011-06-07 Thread Jordi Gutiérrez Hermoso
I have a Python script $program that should be installed under bin/, but it needs a lot of data that should be installed under share/$program/. I would like for the install Makefile target to somehow modify $program to let it know the absolute pathname of where the data share/$program/ is, includin

[CMake] Sharing configuration files?

2011-06-07 Thread Raymond Wan
Hi all, I'm having a problem which I can't quite figure out how to solve. Basically, I have C++ source code in two directories, each for a different class. Let's say: src/X src/Y Each one makes a different class but ultimately X makes use of Y (i.e., an instance of Y is a variable within X's de