Re: [CMake] Setting default make options for Makefiles generator

2009-03-05 Thread Adolfo Rodríguez
Thanks Philip, I had considered the alias option before, but wanted to rule out that there was no way of doing it the scope of a cmake project, however strange that may sound. I will probably take that path now. Cheers, Adolfo On Thu, Mar 5, 2009 at 7:37 AM, Philip Lowman phi...@yhbt.com

Re: [CMake] Setting default make options for Makefiles generator

2009-03-05 Thread Eric Noulard
2009/3/5 Adolfo Rodríguez dof...@gmail.com: Thanks Philip, I had considered the alias option before, but wanted to rule out that there was no way of doing it the scope of a cmake project, however strange that may sound. I will probably take that path now. Note that I find the idea of being

[CMake] Creating JAR files with cmake

2009-03-05 Thread Andreas Pokorny
Hi there, I just tried building a JAR file with CMake. The project structure looks like this: java_projects/ + CMakeLists.txt + Project1/ + MANIFEST.MF + src/ + com + ... and so

Re: [CMake] Setting default make options for Makefiles generator

2009-03-05 Thread Adolfo Rodríguez
I would definitely support the idea. It's more or less what I was looking for. I have a question on the proposal: Would the -Go flags have to be set once per build folder (as the -G flag is), or could it be reset in succesive runs of cmake? Both alternatives would work for me, but I think I prefer

Re: [CMake] Setting default make options for Makefiles generator

2009-03-05 Thread Michael Wild
On 5. Mar, 2009, at 10:53, Adolfo Rodríguez wrote: I would definitely support the idea. It's more or less what I was looking for. I have a question on the proposal: Would the -Go flags have to be set once per build folder (as the -G flag is), or could it be reset in succesive runs of

Re: [CMake] Setting default make options for Makefiles generator

2009-03-05 Thread Kito Berg-Taylor
I would like to second this idea, because it would solve another problem I'm having regarding CMake and environment variables. Not to mention that being able to set the default to -j4 would be useful for internal projects where it's known that all machines building the project will have uniform

Re: [CMake] Setting default make options for Makefiles generator

2009-03-05 Thread Adolfo Rodríguez
On Thu, Mar 5, 2009 at 11:17 AM, Kito Berg-Taylor kito.berg-tay...@dlr.dewrote: I would like to second this idea, because it would solve another problem I'm having regarding CMake and environment variables. Oh, now that you mention environment variables, I think I could also benefit from

[CMake] Finding packagaes build with CMake

2009-03-05 Thread Klaus
Hi, after looking through the documentation of CMake, I am a litte confused, how to help CMake to find packages bulit by CMake. The find_package command supports both xxx-config.cmake and FindXXX.cmake. What is the prefered method for an package which was built by CMake to be found? Should it

[CMake] Call a macro through a variable. Possible or not?

2009-03-05 Thread Marcel Loose
Hi, I was wondering whether it's possible to invoke a macro through a variable. The variable contains a command (or list of commands) to be invoked. For example: macro(do_it) message(STATUS do_it) endmacro(do_it) set(cmd do_it) ${cmd}() # -- This doesn't work, but is there a way to do

Re: [CMake] Rules for files with non-standard extensions

2009-03-05 Thread Philip Lowman
On Tue, Mar 3, 2009 at 3:06 PM, Steven Wilson steven.wesley.wil...@gmail.com wrote: As a new member of the list, I just wanted to say thanks for providing this forum as a place to get answers about cmake! First, the problem: I have a software system composed of a number of source files in

Re: [CMake] Rules for files with non-standard extensions

2009-03-05 Thread Mathieu Malaterre
On Tue, Mar 3, 2009 at 9:06 PM, Steven Wilson steven.wesley.wil...@gmail.com wrote: As a new member of the list, I just wanted to say thanks for providing this forum as a place to get answers about cmake! First, the problem: I have a software system composed of a number of source files in C.

[CMake] add_dependencies with an imported target

2009-03-05 Thread Joachim de Vries
CMake version 2.7-20080708 Mac OSX 10.5 XCode 3.0 I have a problem with add_dependencies. If I add an imported static lib like this: add_library(mylib STATIC IMPORTED) and try to add a dependency to this target on another target like this: add_dependencies(myapp mylib) I get the following

Re: [CMake] ccmake gets all squirrelly over which C++ compiler to use.

2009-03-05 Thread kent williams
So the problem with CCMake forgetting valid user input stems from the entire CMakeCache.txt file getting deleted if there's a compiler mismatch? On Tue, Mar 3, 2009 at 11:21 AM, Bill Hoffman bill.hoff...@kitware.com wrote: Mathieu Malaterre wrote: On Tue, Mar 3, 2009 at 4:20 PM, kent williams

Re: [CMake] Call a macro through a variable. Possible or not?

2009-03-05 Thread Dmitriy Ovdienko
Hello Marcel, Quote from http://cmake.org/cmake/help/syntax.html CMake supports simple variables that can be either strings or lists of strings. Variables are referenced using a ${VAR} syntax. Multiple arguments can be grouped together into a list using the set command. All other commands

[CMake] add_library and PARENT_SCOPE

2009-03-05 Thread mbritton
Hello: I am trying to assemble sources that are distributed across a number of subdirectories into a variable for inclusion in an add_library command. I've tried using PARENT_SCOPE to do so, but I haven't been successful. Here is a specific example: toplevel CMakeLists.txt:

Re: [CMake] ccmake gets all squirrelly over which C++ compiler to use.

2009-03-05 Thread kent williams
Yeah, if you're comfortable using the Unix command line, using non-interactive CMake this way is almost always an easier path to joy than using the GUI or Curses interactive application. It's why the Slicer people spent considerable time putting together a suite of TCL scripts to do their builds,

Re: [CMake] add_library and PARENT_SCOPE

2009-03-05 Thread David Cole
CMake is looking for file.cpp in the top level directory. In your sub, do this instead: set(subfiles ${CMAKE_CURRENT_SOURCE_DIR}/file.cpp PARENT_SCOPE) On Thu, Mar 5, 2009 at 10:22 AM, mbrit...@astro.caltech.edu wrote: Hello: I am trying to assemble sources that are distributed across a

Re: [CMake] Rules for files with non-standard extensions

2009-03-05 Thread Steven Wilson
The example I gave is only just an example for illustrating my question about Xcode and the true source files. The actual code does have unique names for tmpfile so it will work correctly in a parallel build. On Thu, Mar 5, 2009 at 6:28 AM, Mathieu Malaterre mathieu.malate...@gmail.com wrote:

Re: [CMake] Rules for files with non-standard extensions

2009-03-05 Thread Steven Wilson
Thanks for the suggestion, I will give it a try! On Thu, Mar 5, 2009 at 6:22 AM, Philip Lowman phi...@yhbt.com wrote: On Tue, Mar 3, 2009 at 3:06 PM, Steven Wilson steven.wesley.wil...@gmail.com wrote: As a new member of the list, I just wanted to say thanks for providing this forum as a

Re: [CMake] add_library and PARENT_SCOPE

2009-03-05 Thread mbritton
Hello David: Thank you for your comment - with your correction, things worked as I'd hoped. Many thanks Matthew ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

[CMake] Resetting include and link directories

2009-03-05 Thread Steven Wilson
Is there a way to reset the directory lists created by include_directories and link_directories? Thanks, Steve ___ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

Re: [CMake] ccmake gets all squirrelly over which C++ compiler to use.

2009-03-05 Thread Bill Hoffman
kent williams wrote: So the problem with CCMake forgetting valid user input stems from the entire CMakeCache.txt file getting deleted if there's a compiler mismatch? Yes, that is what happens. The use case that this was supposed to address was this: ccmake ../source - oops, I did not

Re: [CMake] Build failure alerts

2009-03-05 Thread Tyler Roscoe
On Wed, Mar 04, 2009 at 11:10:42PM +0200, Iwan Aucamp wrote: Would it be possible to have CMAKE run a custom command with following paramters if the build fails to compile: * source file * line number So that the above can be used by a script to determine change set and commiter

[CMake] VS2008 /INCREMENTAL:NO

2009-03-05 Thread Dmitriy Ovdienko
Hello All, I'm trying to disable incremental linking in my VS2008 project. To achieve it I used CMAKE_EXE_LINKER_FLAGS and CMAKE_EXTRA_LINK_FLAGS flags. SET( CMAKE_EXTRA_LINK_FLAGS ${CMAKE_EXTRA_LINK_FLAGS} /INCREMENTAL:NO ) Unfortunately, neiher first nor send flags does not affect generated

[CMake] gcov results not accurate

2009-03-05 Thread David Blado
Hi All, Some colleagues and myself are in the process of wiring in coverage reports through CTest and CDash. We have noticed that the percentage of code covered is not including source files for which no tests exist. The percentage isn't accurate because if our library has 8 source files and

Re: [CMake] gcov results not accurate

2009-03-05 Thread Andy Lego
Hello David, Unfortunately there is no really good way for CTest to guess all the lines from the source code. We use GCov output, which contains the actual lines and their corresponding coverage. If the file is not used, then GCov will not contain any information and therefore it will be ignored.

Re: [CMake] gcov results not accurate

2009-03-05 Thread Bill Lorensen
In itk, we have header smoke tests that include each header file. The test main just returns success. This will cause non-templated code to be compiled and it will show up in the coverage reoptrs. There is still a problem if you use templated code and do not instantiate at least one copy of the

[CMake] Backlashes on Windows: bug or feature?

2009-03-05 Thread Pau Garcia i Quiles
Hello, I started writing a bug report but I'm not really sure if this is a bug or a feature. On Win32, if you assign a path value to a variable in a CMakeLists.txt, then open the CMakeLists.txt with the CMakeQtGui, it will convert all the backslashes to forward-slashes, although this might not

Re: [CMake] Backlashes on Windows: bug or feature?

2009-03-05 Thread Pau Garcia i Quiles
I forgot to say if I edit the variable value in the Qt GUI and replace C://Intersystems//Cache with C:\\Intersystems\\Cache, the backslashed value is stored in the cache and shdir.c contains the expected output (with '\\'). But if I call CMake form the command line: cmake

Re: [CMake] Backlashes on Windows: bug or feature?

2009-03-05 Thread Clinton Stimpson
How about just using forward slashes everywhere and use file(TO_NATIVE_PATH ...) for the variable substituted by configure_file(...). That works without problems for me. Then you don't have to have any \\ for escaping or for twice escaping. Clint Pau Garcia i Quiles wrote: I forgot

[CMake] dependencies/partial installs between add_subdirectories

2009-03-05 Thread Bill O'Hara
Hi I'm writing a grand top-level CMakeLists.txt that delegates to a number of CMakeLists.txt in various subdirectories: add_subdirectories(foo) add_subdirectories(bar) Is there a straightforward to get cmake to do a make install for foo before continuing on to do bar? And to prevent a parallel

[CMake] Building with debug information using Makefiles

2009-03-05 Thread Tron Thomas
I am trying to use CMake to configure a cross platform project I'm developing. On platforms that have IDE's such as Mac OS X and Windows, the configuration work fine in that programs can be built with debug information for development purposes. On Linux, I am just using Makefiles and no

Re: [CMake] Building with debug information using Makefiles

2009-03-05 Thread Philip Lowman
If you're using CMAKE_BUILD_TYPE=Debug the debugging symbols should all be there. cmake -DCMAKE_BUILD_TYPE=Debug .. On Thu, Mar 5, 2009 at 10:58 PM, Tron Thomas tron.tho...@verizon.netwrote: I am trying to use CMake to configure a cross platform project I'm developing. On platforms that have

Re: [CMake] Unrealistic percent numbers(Ubuntu cmake 2.6-patch0)

2009-03-05 Thread Pavel Shevaev
Folks, looks like I've solved this problem by changing a bit all add_subdirectory commands which pointed to libraries outside the current project's directory. So, instead of this: add_subdirectory(${foo_SOURCE_DIR}/../shared/lib/boost ${foo_BINARY_DIR}) ...now I'm using this:

Re: [CMake] add_dependencies with an imported target

2009-03-05 Thread Joachim de Vries
CMake version 2.6 Mac OSX 10.5 XCode 3.0 My problem is that I have the situation I described in the bottom. I have one app and one lib in one project. If I change something in my lib everything is compiled and the app starts but the app didn't link the lib again. The only solution is to

[CMake] slight problem with CTest documentation

2009-03-05 Thread Philip Lowman
The CTest documentation online appears like it wasn't generated from the 2.6.3 source release. Just noticed this by accident tonight and wanted to mention it. http://www.cmake.org/cmake/help/ctest2.6docs.html#command:ctest_update - *ctest_submit*: Submits the repository.

Re: [CMake] dependencies/partial installs between add_subdirectories

2009-03-05 Thread Philip Lowman
On Thu, Mar 5, 2009 at 7:10 PM, Bill O'Hara billtoh...@gmail.com wrote: Hi I'm writing a grand top-level CMakeLists.txt that delegates to a number of CMakeLists.txt in various subdirectories: add_subdirectories(foo) add_subdirectories(bar) Is there a straightforward to get cmake to do a