Re: [CMake] External projects and make clean

2012-02-20 Thread Michael Hertling
On 02/17/2012 10:16 AM, Oliver Boesche wrote: > Hi, > > I use external projects e.g. to build BOOST for my own project. In that > case I want to prevent the project to be system or version dependent. > > So I build my dependencies successful with external project (and its > great), but if use m

[CMake] Shared intermediary files

2012-02-20 Thread Kevin Schmidt
Hello, I'm in the process of converting over a large, monolithic tree with many libraries from a custom build solution over to cmake. So far, we've loved it. I am wondering about others' solutions to a problem we have encountered. We have more than a few cases of generated source files - for

Re: [CMake] CMAKE_INSTALL_LIBDIR - full path or relative?

2012-02-20 Thread Michael Wild
On 02/20/2012 09:59 PM, Orion Poplawski wrote: > For quite a while, Fedora packages will call cmake with > -DCMAKE_INSTALL_LIBDIR set to /usr/lib or /usr/lib64 as appropriate. > Some projects that use this convention include plplot, lasi > > The relatively new cmake module GNUInstallDirs sets CMA

[CMake] CMAKE_INSTALL_LIBDIR - full path or relative?

2012-02-20 Thread Orion Poplawski
For quite a while, Fedora packages will call cmake with -DCMAKE_INSTALL_LIBDIR set to /usr/lib or /usr/lib64 as appropriate. Some projects that use this convention include plplot, lasi The relatively new cmake module GNUInstallDirs sets CMAKE_INSTALL_LIBDIR to lib or lib64. Other projects li

Re: [CMake] Bug fix requests for the *next* release of CMake...

2012-02-20 Thread Sean McBride
Support for Xcode 4.3 (sic) -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_

Re: [CMake] Find script distribution strategy

2012-02-20 Thread Alexander Neundorf
On Monday 20 February 2012, Barth wrote: > Hello, > > Let be a project A developed and distributed by organization AA. > Let be another project B depending on A, developed by organization BB. B > calls find_package(A) in its CMakeLists.txt as to get the dependencies > libraries and includes. > >

Re: [CMake] more targets to run in parallel

2012-02-20 Thread Andrea Crotti
Going back to the original question, I realised that my approach could not work. In short the list of targets and commands that I need to generate depend on a file, which is generated from a python script. So I thought I could use execute_process before the foreach: execute_process( OUTPUT

Re: [CMake] more targets to run in parallel

2012-02-20 Thread David Cole
On Mon, Feb 20, 2012 at 11:03 AM, Andrea Crotti wrote: > On 02/20/2012 03:50 PM, David Cole wrote: > > On Mon, Feb 20, 2012 at 10:42 AM, Eric Noulard wrote: > >> 2012/2/20 Andrea Crotti : >> > On 02/20/2012 03:15 PM, David Cole wrote: >> > >> > >> > Use: >> > >> > COMMAND ls -l >> > >> > Not:

Re: [CMake] more targets to run in parallel

2012-02-20 Thread Andrea Crotti
On 02/20/2012 03:50 PM, David Cole wrote: On Mon, Feb 20, 2012 at 10:42 AM, Eric Noulard > wrote: 2012/2/20 Andrea Crotti mailto:andrea.crott...@gmail.com>>: > On 02/20/2012 03:15 PM, David Cole wrote: > > > Use: > > COMMAND ls -l

Re: [CMake] more targets to run in parallel

2012-02-20 Thread Andrea Crotti
On 02/20/2012 03:42 PM, Eric Noulard wrote: You may avoid to create a list in the first place: set(myoptions "one two three") instead of set(myoptions one two three) see cmake --help-command list or you can string(REPLACE ";" " " stringopts "${myoptions}") message(STATUS "${stringopts}") So

Re: [CMake] more targets to run in parallel

2012-02-20 Thread David Cole
On Mon, Feb 20, 2012 at 10:42 AM, Eric Noulard wrote: > 2012/2/20 Andrea Crotti : > > On 02/20/2012 03:15 PM, David Cole wrote: > > > > > > Use: > > > > COMMAND ls -l > > > > Not: > > > > COMMAND "ls -l" > > > > > > Yes thanks, I started using the "" because I noticed that sometimes they > are

Re: [CMake] more targets to run in parallel

2012-02-20 Thread Eric Noulard
2012/2/20 Andrea Crotti : > On 02/20/2012 03:15 PM, David Cole wrote: > > > Use: > >   COMMAND ls -l > > Not: > >   COMMAND "ls -l" > > > Yes thanks, I started using the "" because I noticed that sometimes they are > needed. > So suppose I want to split the options and the command, this: > > set(my

Re: [CMake] Find script distribution strategy

2012-02-20 Thread Michael Wild
On 02/20/2012 04:32 PM, Barth wrote: > Hello, > > Let be a project A developed and distributed by organization AA. > Let be another project B depending on A, developed by organization BB. B > calls find_package(A) in its CMakeLists.txt as to get the dependencies > libraries and includes. > > H

[CMake] Find script distribution strategy

2012-02-20 Thread Barth
Hello, Let be a project A developed and distributed by organization AA. Let be another project B depending on A, developed by organization BB. B calls find_package(A) in its CMakeLists.txt as to get the dependencies libraries and includes. How should FindA.cmake be distributed ? Option 1: pac

Re: [CMake] more targets to run in parallel

2012-02-20 Thread Andrea Crotti
On 02/20/2012 03:15 PM, David Cole wrote: Use: COMMAND ls -l Not: COMMAND "ls -l" Yes thanks, I started using the "" because I noticed that sometimes they are needed. So suppose I want to split the options and the command, this: set(myoptions one two three) set(mycmd ls -l) message

Re: [CMake] more targets to run in parallel

2012-02-20 Thread David Cole
On Mon, Feb 20, 2012 at 7:58 AM, Andrea Crotti wrote: > On 02/20/2012 11:51 AM, Eric Noulard wrote: > >> 2012/2/20 Andrea >> Crotti >> >: >> >>> On 02/17/2012 03:35 PM, Andrea Crotti wrote: >>> .. >>> >>> I can make the question much simpler, is it possible to generate targets >>> dynamically wit

Re: [CMake] more targets to run in parallel

2012-02-20 Thread Andrea Crotti
On 02/20/2012 11:51 AM, Eric Noulard wrote: 2012/2/20 Andrea Crotti: On 02/17/2012 03:35 PM, Andrea Crotti wrote: .. I can make the question much simpler, is it possible to generate targets dynamically with CMake? As far as I know you can "generate" targets at CMake-time but not at build-time.

Re: [CMake] more targets to run in parallel

2012-02-20 Thread Eric Noulard
2012/2/20 Andrea Crotti : > On 02/17/2012 03:35 PM, Andrea Crotti wrote: > .. > > I can make the question much simpler, is it possible to generate targets > dynamically with CMake? As far as I know you can "generate" targets at CMake-time but not at build-time. So from my point of view this "compu

[CMake] custom command and differences between VS2005 and VS2010

2012-02-20 Thread walter . schwarz
our project contains a directory with config files. to make the config files (and other externally supplied header files) visible in the visual studio solution, the custom command shown below was specified in the directory. this worked well with the generator for Visual Studio 2005. it doesn't

Re: [CMake] more targets to run in parallel

2012-02-20 Thread Andrea Crotti
On 02/17/2012 03:35 PM, Andrea Crotti wrote: .. I can make the question much simpler, is it possible to generate targets dynamically with CMake? I was trying the following (nonsense), a simple loop over a list that first generates a custom command and another loop that generates a target for e

Re: [CMake] How to have a static/shared option in a Find script ?

2012-02-20 Thread Barth
Hello, Thank you very much for your message. You have been very helpful. Best regards, Barth On 02/16/2012 05:18 PM, Michael Hertling [via CMake] wrote: > On 02/16/2012 03:14 PM, Barth wrote: > > Hi again, > > > > I have understood what you meant :) > > Hhm, actually, I talked nonsense w.r.t. DI