Re: [CMake] Resolution of dependencies for Subversion

2009-09-22 Thread Tyler Roscoe
On Tue, Sep 22, 2009 at 10:57:14PM -0400, Philip Lowman wrote: > > http://fisheye.freeswitch.org/browse/FreeSWITCH/cmake_modules/FindAPRUtil.cmake > > > > If you want to use that FindAPRUtil module, you can drop it in your > > CMake modules directory (alongside the dozens of other Find*.cmake files

Re: [CMake] Resolution of dependencies for Subversion

2009-09-22 Thread Philip Lowman
On Tue, Sep 22, 2009 at 11:51 AM, Tyler Roscoe wrote: > On Tue, Sep 22, 2009 at 09:10:01AM +0200, SF Markus Elfring wrote: > > How are the chances that another improved script will be added to the > available modules? > > > http://fisheye.freeswitch.org/browse/FreeSWITCH/cmake_modules/FindAPRUtil

Re: [CMake] external tools in visual studio

2009-09-22 Thread Philip Lowman
On Thu, Sep 17, 2009 at 12:51 PM, Eric Noulard wrote: > 2009/9/17 : > > Hi, > > > > I may haven't used the right keywords on google, as I believe this is > asked many times befor: > > > > I have a multiplatform project that uses external tools > (yacc/bison/lex/flex). > > > > I don`t have any pro

Re: [CMake] Any Project-postfix variable?

2009-09-22 Thread Tyler Roscoe
On Tue, Sep 22, 2009 at 04:12:05PM -0600, Dixon, Shane wrote: > SET(CMAKE_INSTALL_PREFIX "C:\Program Files\MyProg-${VERSION}" CACHE STRING > "Install path FORCE) Not exactly what you're looking for but how about something like: SET(CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}/MyProg-${VERSION}"

[CMake] Any Project-postfix variable?

2009-09-22 Thread Dixon, Shane
I'd like to start installing each new version of MyProg into it's own folder with the version number MyProg-0.1.1. This is easy in CPACK, so my package does this. I'm having trouble with the install() command. I could cache the value of CMAKE_INSTALL_PREFIX: SET(CMAKE_INSTALL_PREFIX "C:\P

Re: [CMake] multiple cmake files in one directory

2009-09-22 Thread Tyler Roscoe
On Tue, Sep 22, 2009 at 08:34:36PM +0200, Jeroen Dierckx wrote: > What we do in our build system is using file(GLOB to get all .cmake > files in a "targets" directory, and including those. That way, to add > additional targets, all the developers have to do is add a .cmake file > to that directory.

Re: [CMake] how to completelly remove the /Zm1000 compile option via CMakeLists.txt file

2009-09-22 Thread Tyler Roscoe
On Tue, Sep 22, 2009 at 01:38:09PM -0400, Bill Hoffman wrote: > Tyler Roscoe wrote: > >On Tue, Sep 22, 2009 at 05:29:07PM +0400, Anatoly Shirokov wrote: > >>How to completelly remove the /Zm1000 compile option via CMakeLists.txt > >>file? > > > >We use: > > > >string (REPLACE "/Zm1000" " " CMAKE_C

[CMake] Extending list of files subject to coverage with CTest

2009-09-22 Thread Wojciech Migda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I am considering adding code coverage metrics to the executed unit tests. I get it work - I mean gcov i run and data is collected. However, from what I observed files subjected to coverage analysis is limited to those explicitly listed in the

Re: [CMake] external tools in visual studio

2009-09-22 Thread Eric Noulard
2009/9/22 : >> >> We use CMake + Flex/Bison for our project >> >> https://savannah.nongnu.org/projects/certi >> >> (install doc is here: http://www.nongnu.org/certi/certi_doc/index.html >> >>  but there is not much to discover) >> >> >> >> We  did face the same "m4 not found" trouble and it has >>

Re: [CMake] multiple cmake files in one directory

2009-09-22 Thread Jeroen Dierckx
On Tue, Sep 22, 2009 at 7:59 PM, Alexander Neundorf wrote: > On Tuesday 22 September 2009, Tyler Roscoe wrote: >> On Tue, Sep 22, 2009 at 05:55:49PM +0200, th@gmx.de wrote: >> > I have seen a thread about this issue but there was not a real >> > solution, so I try to ask that again: Is there a

Re: [CMake] multiple cmake files in one directory

2009-09-22 Thread Alexander Neundorf
On Tuesday 22 September 2009, Tyler Roscoe wrote: > On Tue, Sep 22, 2009 at 05:55:49PM +0200, th@gmx.de wrote: > > I have seen a thread about this issue but there was not a real > > solution, so I try to ask that again: Is there a way to define a > > specific CMakeLists.txt-file with a cmake ca

Re: [CMake] how to completelly remove the /Zm1000 compile option via CMakeLists.txt file

2009-09-22 Thread Bill Hoffman
Tyler Roscoe wrote: On Tue, Sep 22, 2009 at 05:29:07PM +0400, Anatoly Shirokov wrote: How to completelly remove the /Zm1000 compile option via CMakeLists.txt file? We use: string (REPLACE "/Zm1000" " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) Just curious as to why this is causing trouble? I t

Re: [CMake] multiple cmake files in one directory

2009-09-22 Thread David Cole
How about: if(building_project_1) include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists-1.txt) endif() if(building_project_2) include(${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists-2.txt) endif() On Tue, Sep 22, 2009 at 11:55 AM, wrote: > Hi, > > I have seen a thread about this issue but there was not a

Re: [CMake] multiple cmake files in one directory

2009-09-22 Thread th . tom
> On Tue, Sep 22, 2009 at 05:55:49PM +0200, th@gmx.de wrote: > > I have seen a thread about this issue but there was not a real > > solution, so I try to ask that again: Is there a way to define a > > specific CMakeLists.txt-file with a cmake call. > > Maybe you should post a link to the thread

Re: [CMake] Resolution of dependencies for Subversion

2009-09-22 Thread SF Markus Elfring
> Again, to me it looks like FindSubversion is for *using* Subversion, not > for building it. As such, setting up include paths and link libraries is > not appropriate in that module. How should a module be called which provides all required settings for the build process? > I'm not aware of a

Re: [CMake] multiple cmake files in one directory

2009-09-22 Thread Tyler Roscoe
On Tue, Sep 22, 2009 at 05:55:49PM +0200, th@gmx.de wrote: > I have seen a thread about this issue but there was not a real > solution, so I try to ask that again: Is there a way to define a > specific CMakeLists.txt-file with a cmake call. Maybe you should post a link to the thread so we know

[CMake] multiple cmake files in one directory

2009-09-22 Thread th . tom
Hi, I have seen a thread about this issue but there was not a real solution, so I try to ask that again: Is there a way to define a specific CMakeLists.txt-file with a cmake call. I have two projects, which have the same root directory (what is really nasty but I can't change it actually): -d

Re: [CMake] Resolution of dependencies for Subversion

2009-09-22 Thread Tyler Roscoe
On Tue, Sep 22, 2009 at 09:10:01AM +0200, SF Markus Elfring wrote: > I do not want to develop an add-on. But I would like to create a > little program for my own purposes that is based on the application > programming interface like it is described in the document "Using the > APIs - Chapter 8. Dev

Re: [CMake] how to completelly remove the /Zm1000 compile option via CMakeLists.txt file

2009-09-22 Thread Tyler Roscoe
On Tue, Sep 22, 2009 at 05:29:07PM +0400, Anatoly Shirokov wrote: > How to completelly remove the /Zm1000 compile option via CMakeLists.txt > file? We use: string (REPLACE "/Zm1000" " " CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS}) tyler ___ Powered by www.kitw

Re: [CMake] Set a variable?

2009-09-22 Thread motes motes
On Tue, Sep 22, 2009 at 3:55 PM, James C. Sutherland wrote: > > On Sep 22, 2009, at 6:16 AM, motes motes wrote: > >> In a CMakeList.txt file I have: >> >> SET(ELASTIX_BUILD E:/local/lib/elastix_sources_v4.1/src/build) >> ... >> >> LINK_DIRECTORIES(${ELASTIX_BUILD}/Components/Optimizers/StandardGra

Re: [CMake] Xcode projectRoot, projectDirPath and SCM

2009-09-22 Thread Brad King
Baron Roberts wrote: > Folks, I am generating Xcode 3.1 a project using cmake 2.6.2. I have noticed > that I am not able to connect the generated project to my Perforce SCM > system such that the files in the project are recognized as being in the > repository. While Xcode is able to access the rep

Re: [CMake] Set a variable?

2009-09-22 Thread James C. Sutherland
On Sep 22, 2009, at 6:16 AM, motes motes wrote: In a CMakeList.txt file I have: SET(ELASTIX_BUILD E:/local/lib/elastix_sources_v4.1/src/build) ... LINK_DIRECTORIES(${ELASTIX_BUILD}/Components/Optimizers/ StandardGradientDescent) I would to be able to specify the variable: ELASTIX_BUILD w

[CMake] how to completelly remove the /Zm1000 compile option via CMakeLists.txt file

2009-09-22 Thread Anatoly Shirokov
I use Visual Studio 6 generator and have problem with /Zm1000 option. How to completelly remove the /Zm1000 compile option via CMakeLists.txt file? May be is there other way? Thanks in advance, Anatoly. ___ Powered by www.kitware.com Visit other

[CMake] Set a variable?

2009-09-22 Thread motes motes
In a CMakeList.txt file I have: SET(ELASTIX_BUILD E:/local/lib/elastix_sources_v4.1/src/build) ... LINK_DIRECTORIES(${ELASTIX_BUILD}/Components/Optimizers/StandardGradientDescent) I would to be able to specify the variable: ELASTIX_BUILD when I read the CMakeList.txt file and then choose it fr

Re: [CMake] external tools in visual studio

2009-09-22 Thread th . tom
> >> We use CMake + Flex/Bison for our project > >> https://savannah.nongnu.org/projects/certi > >> (install doc is here: http://www.nongnu.org/certi/certi_doc/index.html > >>  but there is not much to discover) > >> > >> We  did face the same "m4 not found" trouble and it has > >> been "fixed" by

Re: [CMake] Updated FindThreads.cmake in tracker

2009-09-22 Thread Marcel Loose
On Mon, 2009-09-21 at 23:25 -0400, Philip Lowman wrote: > On Mon, Sep 21, 2009 at 6:07 AM, Marcel Loose wrote: > > On Sun, 2009-09-20 at 19:32 -0400, Philip Lowman wrote: > > On Sun, Sep 20, 2009 at 3:02 PM, Hendrik Sattler > > > > I'm hesitant to rewrite a

Re: [CMake] Updated FindThreads.cmake in tracker

2009-09-22 Thread Hendrik Sattler
Zitat von Philip Lowman : So the gist of it is, if your only Unix compiler is gcc and if you add "-pthread" to your CMAKE_C_FLAGS/CMAKE_CXX_FLAGS you really have no need for FindThreads at all, as far as I can tell. But cmake is not only about gcc. Additionally, gcc > 3.0 is mentioned, gcc-2.

Re: [CMake] Resolution of dependencies for Subversion

2009-09-22 Thread SF Markus Elfring
> You mean that you have FindSubversion.cmake as part of your > CMake installation? Yes. - The configuration script is a part of the package "cmake 2.6.4-29.2" from the openSUSE build service. > I don't see any variables defined with those names in the module you > linked above. What is the que