Re: [CMake] install question

2009-03-13 Thread ankit jain
2009/3/10 Sharon Melamed shar...@voltaire.com Hi, My main CmakeList.txt file look like this: cmake_minimum_required (VERSION 2.6) project (vos) Same thing happens to me also. The problem is of RPATH settings. the path your cmakelist links to while installing is not set for the sub

Re: [CMake] Parallel builds and Eclipse CDT4 generator

2009-03-13 Thread Adolfo Rodríguez
On Thu, Mar 12, 2009 at 10:56 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Thursday 12 March 2009, Bill Hoffman wrote: Alexander Neundorf wrote: I'm using CMake 2.6.2 and Eclipse CDT5 (not CDT4, could this be an issue?) I don't think so. We could add some special

Re: [CMake] Linking cmake build library to a shell script

2009-03-13 Thread ankit jain
2009/3/13 Mattias Helsing helsin...@gmail.com Hello Ankit, On 3/13/09, ankit jain ankitgu...@gmail.com wrote: Hi all, I have a shell script. I want to link it with a library that i have build using cmake. Is it possible to do so. I am running this shell script using cmake. You need

Re: [CMake] Parallel builds and Eclipse CDT4 generator

2009-03-13 Thread hl.ichaus
Am Donnerstag, 12. März 2009 09:37:12 wrote Adolfo Rodríguez: We currently use three of CMake's generators: Unix Makefiles, KDevelop3, and Eclipse CDT4 - Unix Makefiles, and we're interested in doing parallel builds. I use the environment variable MAKEFLAGS before starting eclipse, i do a

Re: [CMake] Boost system library

2009-03-13 Thread Geir Erikstad
09/3/13 Philip Lowman phi...@yhbt.com: On Thu, Mar 12, 2009 at 7:39 PM, Bart Janssens bart.janss...@lid.kviv.be wrote: Not sure if this ever came up, but I'm struggling with FindBoost and the boost system library. The system library is required from boost 1.35 onwards, but doesn't exist in

Re: [CMake] Header files excluded from build in Visual Studio

2009-03-13 Thread Bill Hoffman
Claus Höfele wrote: Thanks for the quick replies. I'm using cmake 2.6.3 + Visual Studio 8 2005 SP1 Playing around further with the file properties in Visual Studio, it looks like VS only checks the syntax of a file if the Tool property is set to C/C++ Compiler Tool. However, this setting will

[CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Denis Scherbakov
Dear CMake list subscripers, I have a project with verious ADD_LIBRARY/ADD_EXECUTABLE targets in different subdirectories. Some of these targets depend on mico corba, some don't. As well as some depend on libxml2, some don't. We have developers working on sub-projects, which do not require

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Bill Hoffman
Denis Scherbakov wrote: Dear CMake list subscripers, I have a project with verious ADD_LIBRARY/ADD_EXECUTABLE targets in different subdirectories. Some of these targets depend on mico corba, some don't. As well as some depend on libxml2, some don't. We have developers working on

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Denis Scherbakov
I don't understand the question here? At gmake time why do they need to know anything about mico or libxml2? Ok, I will try harder now: Let's say I have a main CMakeLists.txt and 2 sub projects: =CMakeLists.txt CMAKE_MINIMUM_REQUIRED(VERSION 2.6.1 FATAL_ERROR)

[CMake] Boost CMakeification progress?

2009-03-13 Thread John Biddiscombe
I just did an svn update of a very old boost-cmake folder and ran cmake. Everything built with no errors (Visual studio 2008) (lots of warnings, but no errors). I wonder. How well is CMakeification of Boost going? Will standard releases of Boost contain CMakeLists files in my lifetime? and

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Brad King
Bill Hoffman wrote: The following Fortran code cannot be compiled with CMake, because CMake looks for module called name, which of course, does not exist. Actually it thinks the source is defining a module called name. If I replace Module with _Module_ the code compiles.

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Marcel Loose
Hi Denis, If only project SOMENAME in directory targetA depends on LibXml2, then you should move the line INCLUDE(FindLibXml2) to the file targetA/CMakeLists.txt. BTW, I'd prefer to use find_package(LibXml2), but that may be a matter of taste. Best regards, Marcel Loose. On Fri, 2009-03-13 at

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Denis Scherbakov
Dear Marcel Loose, I tried what you have suggested and it doesn't work also. Here is what I have: =CMakeLists.txt CMAKE_MINIMUM_REQUIRED(VERSION 2.6.1 FATAL_ERROR) ADD_SUBDIRECTORY(printf) ADD_SUBDIRECTORY(puts) ADD_SUBDIRECTORY(forbug) SET(MAIN_SRCS main.cpp)

[CMake] CMake 2.6.3 - Fix set cache FORCE and -D command line to work together

2009-03-13 Thread Andreas Schneider
Hi, what means - Fix set cache FORCE and -D command line to work together I've recognized, that -DFOO=something doesn't overwrite cache settings anymore which are set to FORCE. Is this true? If yes, then the documentation should be updated. -D states: This option may be used

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Eric Noulard
2009/3/13 Denis Scherbakov denis_scherba...@yahoo.com: As I already wrote, my problem is that IF ( NOT MICO_FOUND ) code is executed too early - during compilation by cmake, not when user types gmake puts and it becomes clear that MICO is needed. That's the expected behavior, because CMake

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Eric Noulard
2009/3/13 Eric Noulard eric.noul...@gmail.com: My statement was ambiguous: cmake -DBUILD_PRINTF:BOOL=OFF The previous line is meant to avoid building the PRINTF project while... in this case the default is to build both. The default value of options BUILD_PRINTF BUILD_PUTS is to build

[CMake] Non existent / new file handling

2009-03-13 Thread John Drescher
Is there a way to have cmake automatically create empty missing source files instead of failing? Basically I when I need to add new files I add new entries to my CMakeLists.txt file then I have to go to the shell and touch on each file I add so that cmake will not fail to regenerate the project.

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Denis Scherbakov
Eric, Your solution requires a developer to know too much about the project, which is not always true and basically to answer a full-scale questionnaire before compilation. What if it is a new developer? What if it is not a developer, but a user who expects everything to compile

Re: [CMake] CMake 2.6.3 - Fix set cache FORCE and -D command line to work together

2009-03-13 Thread Bill Hoffman
Andreas Schneider wrote: Hi, what means - Fix set cache FORCE and -D command line to work together I've recognized, that -DFOO=something doesn't overwrite cache settings anymore which are set to FORCE. Is this true? If yes, then the documentation should be updated. -D states:

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Bill Hoffman
Denis Scherbakov wrote: Eric, Your solution requires a developer to know too much about the project, which is not always true and basically to answer a full-scale questionnaire before compilation. What if it is a new developer? What if it is not a developer, but a user who expects everything

Re: [CMake] Non existent / new file handling

2009-03-13 Thread Denis Scherbakov
John, You may want to look into ADD_CUSTOM_COMMAND. PROJECT(CORBASAMPLE) ADD_CUSTOM_COMMAND( OUTPUT ${PROJECT_BINARY_DIR}/MyMicoGeneratedSource.cpp COMMAND ${MICO_IDL_EXECUTABLE} --hh-suffix=hh --any --poa ${PROJECT_SOURCE_DIR}/IdlSource.idl)

Re: [CMake] Non existent / new file handling

2009-03-13 Thread John Drescher
On Fri, Mar 13, 2009 at 1:15 PM, Denis Scherbakov denis_scherba...@yahoo.com wrote: John, You may want to look into ADD_CUSTOM_COMMAND. PROJECT(CORBASAMPLE) ADD_CUSTOM_COMMAND(  OUTPUT ${PROJECT_BINARY_DIR}/MyMicoGeneratedSource.cpp  COMMAND ${MICO_IDL_EXECUTABLE}

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Maik Beckmann
Brad King schrieb am Freitag 13 März 2009 um 16:51: Actually, I cannot tell from a quick glance at the code how it ignores 'USE' keywords that appear after a ';' separator. It does not ignore 'MODULE' after ';'. Maik? If a piece of code is identifed by the _lexer_ as being a comment, it is

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Eric Noulard
2009/3/13 Denis Scherbakov denis_scherba...@yahoo.com: Eric, Your solution requires a developer to know too much about the project, which is not always true and basically to answer a full-scale questionnaire before compilation. What if it is a new developer? If it is not a developer there

Re: [CMake] Non existent / new file handling

2009-03-13 Thread Alexander Neundorf
On Friday 13 March 2009, John Drescher wrote: Is there a way to have cmake automatically create empty missing source files instead of failing? No, there is not. Basically I when I need to add new files I add new entries to my CMakeLists.txt file then I have to go to the shell and touch on

Re: [CMake] Project structure

2009-03-13 Thread Alexander Neundorf
On Friday 13 March 2009, Daniele Galdi wrote: Hi, I have a project structure like this in my cmake project. project/src/core-lib project/src/tool1 project/src/tool2 project/src/tool3 the core library is a shared library. Each tool links this lib, what i want to achieve is decide where

Re: [CMake] Non existent / new file handling

2009-03-13 Thread John Drescher
On Fri, Mar 13, 2009 at 1:39 PM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Friday 13 March 2009, John Drescher wrote: Is there a way to have cmake automatically create empty missing source files instead of failing? No, there is not. Basically I when I need to add new files I add

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Eric Noulard
2009/3/13 Maik Beckmann beckmann.m...@googlemail.com: Brad King schrieb am Freitag 13 März 2009 um 16:51: Actually, I cannot tell from a quick glance at the code how it ignores 'USE' keywords that appear after a ';' separator.  It does not ignore 'MODULE' after ';'.  Maik? If a piece of code

Re: [CMake] Project structure

2009-03-13 Thread Daniele Galdi
Hi Alex, first of all thanks for the reply. The reason is simple, I want to distribute each tool with all the libraries needed to run. You said that the library will be installed only once...is it possible to decide where install the library within the CMakeFile of each single tools? It's

Re: [CMake] Boost CMakeification progress?

2009-03-13 Thread Michael Jackson
I would ask on the boost-cmake mailing list. You will probably get good replies from notable people from the boost project. _ Mike Jackson mike.jack...@bluequartz.net BlueQuartz Software

Re: [CMake] Boost CMakeification progress?

2009-03-13 Thread John Drescher
Will standard releases of Boost contain CMakeLists files in my lifetime? They do already. 1.38.0 did. Although I did not have good success building it that way. John ___ Powered by www.kitware.com Visit other Kitware open-source projects at

Re: [CMake] Boost CMakeification progress?

2009-03-13 Thread John Drescher
On Fri, Mar 13, 2009 at 3:08 PM, John Drescher dresche...@gmail.com wrote: Will standard releases of Boost contain CMakeLists files in my lifetime? They do already. 1.38.0 did. Although I did not have good success building it that way. Here is a link to the release notes (look at the bottom

Re: [CMake] Boost CMakeification progress?

2009-03-13 Thread John Drescher
On Fri, Mar 13, 2009 at 3:09 PM, John Drescher dresche...@gmail.com wrote: On Fri, Mar 13, 2009 at 3:08 PM, John Drescher dresche...@gmail.com wrote: Will standard releases of Boost contain CMakeLists files in my lifetime? They do already. 1.38.0 did. Although I did not have good success

Re: [CMake] Project structure

2009-03-13 Thread kent williams
It's not very elegant, but this will have the desired effect: 1. make sure the library SUBDIR is in your CMakeLists.txt before any other subdir that depends on it. 2. use add_custom_command to copy the library, once built, into each subdir. 3. use install in each subdir to install the library

Re: [CMake] Boost CMakeification progress?

2009-03-13 Thread John Biddiscombe
John Thanks for this info. The version I compiled from the boost-cmake svn repository was 1.36 so I didn't realize that the main branch had it included. I'll give 1.38 a try. JB Will standard releases of Boost contain CMakeLists files in my lifetime? They do

[CMake] VS2005 all headers are excluded

2009-03-13 Thread Hicham Mouline
Hello, cmake 2.6.3. There has been a number of modifications which have caused all headers in the generated project files .vcproj to be excluded frm build (the red minus sign next to the file in Solution explorer) I have searched from inside VStudio the string HEADER_ONLY (ignoring case) in

Re: [CMake] VS2005 all headers are excluded

2009-03-13 Thread John Drescher
cmake 2.6.3. There has been a number of modifications which have caused all headers in the generated project files .vcproj to be excluded frm build (the red minus sign next to the file in Solution explorer) I have searched from inside VStudio the string HEADER_ONLY (ignoring case) in all

Re: [CMake] VS2005 all headers are excluded

2009-03-13 Thread Bill Hoffman
Hicham Mouline wrote: Hello, cmake 2.6.3. There has been a number of modifications which have caused all headers in the generated project files .vcproj to be excluded frm build (the red minus sign next to the file in Solution explorer) I have searched from inside VStudio the string

Re: [CMake] VS2005 all headers are excluded

2009-03-13 Thread John Drescher
Is this causing issues with the building of your project? Or is it just ugly to look at? Bill, I am not the OP but I use cmake 2.6.3 since it was released with vs2005 but for me I can not see any difference besides the ugly symbol in the solution explorer. John

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Maik Beckmann
Eric Noulard schrieb am Freitag 13 März 2009 um 19:00: which makes me think that ALL fixed_fmt rules in the lexer are currently ignored because the start condition never gets activated. i.e. there should be some code that's tell the lexer that it is lexing a fixed format file. Note that

Re: [CMake] 1 tricky question, 1 bug report

2009-03-13 Thread Maik Beckmann
Brad King schrieb am Freitag 13 März 2009 um 16:51: The full fix is of course to discard 'C'-prefixed comments completely, but that can only be done in fixed-form sources. Currently our lexer has code to support fixed-form files but it is never enabled. CMake does not know whether a source