[CMake] File permissions issue

2010-01-11 Thread Johannes Felten
Hi all, I couldn't find much information either on Google or the Wiki or elswhere, so I post my questions here. We are using Cmake under Linux and have experienced some difficulties with CMake due to the multi-user-environment in Linux. In one run, CMake generates files with different file-permis

Re: [CMake] Fortran version of FindMPI

2010-01-11 Thread Michael Wild
On 11. Jan, 2010, at 22:26 , Moreland, Kenneth wrote: > I have a simple Fortran program that uses MPI that I am trying to configure > with CMake. The problem is that although the FindMPI module finds the C > libraries for MPI, it does not find the Fortran libraries. To get around > this I co

Re: [CMake] what is the right way to set CMAKE_USE_RELATIVE_PATHS?

2010-01-11 Thread David . Karr
>> There are lots of questions on this CMake variable and the consensus is DO >> NOT USE IT. PERIOD. The implementation is basically broken for all but the >> most trivial case. > >I can tell you one thing. If the original idea of this was an attempt >to create a CMake free build that will not work

Re: [CMake] ExternalProject_Add inserting " around *'s "

2010-01-11 Thread Tim St. Clair
I found the source of the error: ExternalProject.cmake (line 583) add_custom_command( OUTPUT ${stamp_dir}${cfgdir}/${name}-${step} COMMENT ${comment} COMMAND ${command} COMMAND ${touch} DEPENDS ${depends} WORKING_DIRECTORY ${work_dir} VERBATIM ) nix VERBATIM, a

Re: [CMake] "rule" to generate assembler listings for each c file

2010-01-11 Thread Alexander Neundorf
On Monday 11 January 2010, Arne Pagel wrote: > > Are you sure you really need that ? > > If you enter "make help" in the directory of your target, you will see > > that there are also rules for building the object files foo.o and also > > for just generating the assembler files (foo.s). > > I.

Re: [CMake] using cmake on windows - query on existing targets

2010-01-11 Thread Chauhan, Vikas
> > I understand what you mean and it is similar to what the macro suggested > > by Alex does. > > However, I do not want a developer to have a need to change setting in > > the cmake GUI for what I need. > > > > What I want is that: > > 1. the user should be able to see a list of components & sub

Re: [CMake] "rule" to generate assembler listings for each c file

2010-01-11 Thread Arne Pagel
Hi Luca, thank you for the idea, I will try it. It looks if this could help me, even if I don't understand every command in detail. I think I wouldn't have brought this out with reading the docs. best regards Arne Luca Cappa schrieb: Hi Arne, I think this cmake script shows what you need to

Re: [CMake] error while stage install of crosscompiled binaries

2010-01-11 Thread Alexander Neundorf
On Thursday 07 January 2010, Claus Klein wrote: > Hi > > i want to install a cross compiled (build host is a MAC OS X) project > to a temporary state dir to get an archive to distribute the binaries. > The target is win32 (mingw), compiled to be installed at c:/usr as > CMAKE_INSTALL_PREFIX. > This

Re: [CMake] "rule" to generate assembler listings for each c file

2010-01-11 Thread Arne Pagel
> Are you sure you really need that ? > If you enter "make help" in the directory of your target, you will see that > there are also rules for building the object files foo.o and also for just > generating the assembler files (foo.s). > I.e. you can manually enter "make ...path/foo.s" and this wil

[CMake] Fortran version of FindMPI

2010-01-11 Thread Moreland, Kenneth
I have a simple Fortran program that uses MPI that I am trying to configure with CMake. The problem is that although the FindMPI module finds the C libraries for MPI, it does not find the Fortran libraries. To get around this I copied the FindMPI.cmake from the CMake distribution and did some

[CMake] cpack components

2010-01-11 Thread Clinton Stimpson
I have a project with install commands like so: INSTALL(TARGETS foo RUNTIME DESTINATION bin COMPONENT Runtime LIBRARY DESTINATION bin COMPONENT Runtime ARCHIVE DESTINATION bin COMPONENT Development) INSTALL(FILES ${foo_HDRS} DESTINATION include COMPONENT Development

Re: [CMake] "rule" to generate assembler listings for each c file

2010-01-11 Thread Alexander Neundorf
On Saturday 09 January 2010, Arne Pagel wrote: > Hello, > > I try to use cmake for crosscompiling an embedded project with arm-elf-gcc. > For a simple project, a CMakeLists.txt like this works fine for me: > > cmake_minimum_required(VERSION 2.6) > > SET(CMAKE_SYSTEM_NAME Generic) > SET(CMAKE_C_COMP

Re: [CMake] using cmake on windows - query on existing targets

2010-01-11 Thread Eric Noulard
2010/1/11 Chauhan, Vikas : > > I understand what you mean and it is similar to what the macro suggested > by Alex does. > However, I do not want a developer to have a need to change setting in > the cmake GUI for what I need. > > What I want is that: > 1. the user should be able to see a list of co

Re: [CMake] using cmake on windows - query on existing targets

2010-01-11 Thread John Drescher
On Mon, Jan 11, 2010 at 3:51 PM, Chauhan, Vikas wrote: >> > Actually, when I used the macro I found that though this macro gives >> > a >> > useful functionality it is not exactly what I wanted. >> > >> > What I want to do can be illustrated the following example: >> > I have a main project/dir -

Re: [CMake] Using an external shared library in a cross-compiled project

2010-01-11 Thread Alexander Neundorf
On Monday 11 January 2010, Mihai Groza wrote: > Hi all, > > I'm using CMake to port a subproject from autotools. The project is > cross-compiled. Other parts of the project are still using autotools, this > is just to see the project can be migrated. ... > Obviously, this path doesn't exist on the

Re: [CMake] How to make dependency scanner ignore some paths?

2010-01-11 Thread Alexander Neundorf
On Monday 11 January 2010, Pavel Shevaev wrote: > On Sat, Dec 26, 2009 at 2:20 PM, Pavel Shevaev wrote: > > Guys, what is the best way to to make the dependency scanner ignore some > > paths? how long does it take if you don't set include_regular_expression() ? > Sorry folks, I'm replying to my

Re: [CMake] using cmake on windows - query on existing targets

2010-01-11 Thread Chauhan, Vikas
> > Actually, when I used the macro I found that though this macro gives > > a > > useful functionality it is not exactly what I wanted. > > > > What I want to do can be illustrated the following example: > > I have a main project/dir - projectSystem > > I have three component/dir - projectcomponen

[CMake] Using an external shared library in a cross-compiled project

2010-01-11 Thread Mihai Groza
Hi all, I'm using CMake to port a subproject from autotools. The project is cross-compiled. Other parts of the project are still using autotools, this is just to see the project can be migrated. In my subproject, one executable needs an external shared library, added this way: add_library(cee

[CMake] Quoting of commands.

2010-01-11 Thread Tim St. Clair
Is there a global way to disable all CMake quoting of commands? It appears that CMake is parsing some commands and inserting quotes in places and it is causing me much grief. -- Cheers, Timothy St. Clair ___ Powered by www.kitware.com Visit other Kitw

Re: [CMake] Cannot browse www.cmake.org?

2010-01-11 Thread Dave Partyka
Hi Eric, Our IT staff just notified us that we are experiencing external DNS issues and that they hope to have them resolved soon. On Mon, Jan 11, 2010 at 10:36 AM, Eric Noulard wrote: > I'm currently unable to reach CMake web site? > > I'm in Europe (France) with no noticable connectivity loss

[CMake] Cannot browse www.cmake.org?

2010-01-11 Thread Eric Noulard
I'm currently unable to reach CMake web site? I'm in Europe (France) with no noticable connectivity loss on other side? -- Erk Membre de l'April - « promouvoir et défendre le logiciel libre » - http://www.april.org ___ Powered by www.kitware.com Visit

Re: [CMake] How to make dependency scanner ignore some paths?

2010-01-11 Thread Pavel Shevaev
On Sat, Dec 26, 2009 at 2:20 PM, Pavel Shevaev wrote: > Guys, what is the best way to to make the dependency scanner ignore some > paths? Sorry folks, I'm replying to myself So, no advice here? Let me rephrase the original question a bit then: what are the best practices to speed up the CMa

Re: [CMake] Can you add sources to a target library after add_library()?

2010-01-11 Thread Marcel Loose
Hi Eric, Your solution is one possibility to tackle my problem. What I am trying to accomplish is to record version information into some (but not all) of the libraries/executables in my project. So, this version file -- let's call it version.cc -- may, or may not be part of the list of sources t

Re: [CMake] Can you add sources to a target library after add_library()?

2010-01-11 Thread Eric Noulard
2010/1/11 Marcel Loose : > Too bad. I was hoping I could do this without having to use a list > variable to collect all my sources. In my case, the use of conditionals > is somewhat awkward. Personnally I sometime use several variable like: add_library(blah ${BLAH_SOURCE}

Re: [CMake] "rule" to generate assembler listings for each c file

2010-01-11 Thread Luca Cappa
Hi Arne, I think this cmake script shows what you need to do to add a compiler flag for each source file. It adds a dummy flag "/flagadded:FILE_NAME" for each source file according to its name. project(flags_per_file) cmake_minimum_required(VERSION 2.6) set(SOURCES x1.c x2.c x3.c) add_exec

Re: [CMake] Can you add sources to a target library after add_library()?

2010-01-11 Thread Marcel Loose
Too bad. I was hoping I could do this without having to use a list variable to collect all my sources. In my case, the use of conditionals is somewhat awkward. Best regards, Marcel Loose. On Sat, 2010-01-09 at 18:38 -0500, Philip Lowman wrote: > I highly doubt it. Best practice is to just use co