[CMake] Patch to make Eclipse CDT4 Generated projects scan for preprocessor definitions

2007-10-22 Thread Philip Lowman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I have attached a patch to the bugtracker which I think mostly solves the outstanding problem of Eclipse CDT4 Generated projects not detecting preprocessor definitions and consequently graying out and not indexing parts of one's code. I'd appreciate i

[CMake] Re: Re: Re: Re: Hyperlinked indexed reference?

2007-10-22 Thread Fernando Cacciola
Hi Bill, Just create a patch and send it to me. OK. Here's a patch for cmDocumentationFormatterHTML.cxx It adds, at the beginning of each section, a list with hyperlinks to each entry in it. Unfortunately, adding a similar list to the whole document is more difficult given the current doc

[CMake] Re: Re: Re: Re: Hyperlinked indexed reference?

2007-10-22 Thread Fernando Cacciola
Bill Hoffman wrote: Ken just checked in his changes, so if you create a patch, use CVS CMake. Cool. Is there a dev-list (here?) or at least someone I can forward the diff to look at before I commit? I don't think you can commit. Just create a patch and send it to me. OK. Best Fernando

Re: [CMake] Re: Re: Re: Hyperlinked indexed reference?

2007-10-22 Thread Bill Hoffman
Fernando Cacciola wrote: Bill Hoffman wrote: Fernando Cacciola wrote: Bill Hoffman wrote: [EMAIL PROTECTED] wrote: A patch would be welcome :-) It's in the CMake/Source/cmDocumentation*.cxx files in cmake cvs. In the interest of not wasting someones time... Ken is currently re-working t

[CMake] Re: Re: Re: Hyperlinked indexed reference?

2007-10-22 Thread Fernando Cacciola
Bill Hoffman wrote: Fernando Cacciola wrote: Bill Hoffman wrote: [EMAIL PROTECTED] wrote: A patch would be welcome :-) It's in the CMake/Source/cmDocumentation*.cxx files in cmake cvs. In the interest of not wasting someones time... Ken is currently re-working the cmDocumentation stuff r

Re: [CMake] Re: Re: Hyperlinked indexed reference?

2007-10-22 Thread Bill Hoffman
Fernando Cacciola wrote: Bill Hoffman wrote: [EMAIL PROTECTED] wrote: A patch would be welcome :-) It's in the CMake/Source/cmDocumentation*.cxx files in cmake cvs. In the interest of not wasting someones time... Ken is currently re-working the cmDocumentation stuff right now (for other r

[CMake] Re: Re: Hyperlinked indexed reference?

2007-10-22 Thread Fernando Cacciola
Bill Hoffman wrote: [EMAIL PROTECTED] wrote: A patch would be welcome :-) It's in the CMake/Source/cmDocumentation*.cxx files in cmake cvs. In the interest of not wasting someones time... Ken is currently re-working the cmDocumentation stuff right now (for other reasons). So, it might not

Re: [CMake] Re: Hyperlinked indexed reference?

2007-10-22 Thread Alan W. Irwin
On 2007-10-22 10:20-0300 Fernando Cacciola wrote: I read in a DDJ article that each command returns its own documentation. (And cmake.exe builds up the single-page doc based on that). Assuming that's true (I haven't seen any source code), isn't it somewhat simple to extend the pattern so that

Re: [CMake] How to get the result of a test during tests

2007-10-22 Thread Brandon Van Every
On 10/22/07, Alan W. Irwin <[EMAIL PROTECTED]> wrote: > > That is, use EXECUTE_PROCESS in ordinary cmake code to determine if the MPI > function works well. Although EXECUTE_PROCESS, generally speaking, cannot determine if something will work under your actual compilation environment. It only wor

Re: [CMake] How to get the result of a test during tests

2007-10-22 Thread Alan W. Irwin
On 2007-10-22 11:43+0200 Baptiste Derongs wrote: Hello all, I would like to test a property of my system (actually if an MPI function works well). And only if it does, I will launch a part of my tests. If not, only the main part will execute. So I was thinking that the best solution would be t

Re: [CMake] Caching calculated values.

2007-10-22 Thread Amitha Perera
On Mon 22 Oct 2007, Josef Karthauser wrote: > As each set of calculations are connected to a single CMakeList.txt > file, it should be possible to avoid recalculating, and useing cached > values where possible. In order to do that however I need to know > whether a CMakeLists.txt file is stale, wi

Re: [CMake] Ignoring return codes on ADD_CUSTOM_COMMAND (hhc.exe)

2007-10-22 Thread Stefan Buschmann
Mathieu Malaterre schrieb: To complete my answer you need to write your EXECUTE_PROCESS within a hhc.cmake file and then run: cmake -P hhc.cmake HTH Works great, thanks for the tip! Stefan ___ CMake mailing list CMake@cmake.org http://www.cma

Re: [CMake] Re: Hyperlinked indexed reference?

2007-10-22 Thread Bill Hoffman
[EMAIL PROTECTED] wrote: A patch would be welcome :-) It's in the CMake/Source/cmDocumentation*.cxx files in cmake cvs. In the interest of not wasting someones time... Ken is currently re-working the cmDocumentation stuff right now (for other reasons). So, it might not be a good time to

Re: [CMake] Caching calculated values.

2007-10-22 Thread a . neundorf-work
On Monday 22 October 2007 17:49, Josef Karthauser wrote: > Full of questions me...! > > As part of a cmake run a number of my CMakeLists.txt files do some > complex state-machine stuff to determine a list of files. This takes > some time, and I want to avoid doing it unnecessarily. However, > whe

Re: [CMake] Re: Hyperlinked indexed reference?

2007-10-22 Thread a . neundorf-work
On Monday 22 October 2007 15:20, Fernando Cacciola wrote: ... > Assuming that's true (I haven't seen any source code), isn't it somewhat > simple to extend the pattern so that each command outputs also an HTML > friendly documentation entryr? > > Something like: > > command->get_documentation_html_

[CMake] Caching calculated values.

2007-10-22 Thread Josef Karthauser
Full of questions me...! As part of a cmake run a number of my CMakeLists.txt files do some complex state-machine stuff to determine a list of files. This takes some time, and I want to avoid doing it unnecessarily. However, whenever a single CMakeLists.txt file in the tree changes, cmake runs o

Re: [CMake] Ignoring return codes on ADD_CUSTOM_COMMAND (hhc.exe)

2007-10-22 Thread Mathieu Malaterre
On 10/22/07, Mathieu Malaterre <[EMAIL PROTECTED]> wrote: > On 10/22/07, Stefan Buschmann <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > I'm currently having a problem using the HTMLHelp Compiler (hhc.exe) in > > my CMake-Scripts. I build the doxygen docs, then call hhc.exe and the > > .chm file is

Re: [CMake] Ignoring return codes on ADD_CUSTOM_COMMAND (hhc.exe)

2007-10-22 Thread Mathieu Malaterre
On 10/22/07, Stefan Buschmann <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm currently having a problem using the HTMLHelp Compiler (hhc.exe) in > my CMake-Scripts. I build the doxygen docs, then call hhc.exe and the > .chm file is created correctly. > But hhc.exe seems to return an error code, so th

Re: [CMake] NMake questions if I may.

2007-10-22 Thread David Cole
On 10/22/07, Josef Karthauser <[EMAIL PROTECTED]> wrote: > I did a search on the net, and found documentation that stated that NMake did > support /J Where? Is this documentation on the web? Is it for an older nmake? ___ CMake mailing list CMake@cmake.o

Re: [CMake] Selecting compiler on Windows platform

2007-10-22 Thread Miguel A. Figueroa-Villanueva
On 10/22/07, Josef Karthauser wrote: > > -Original Message- > > On Monday 22 October 2007 11:34, Josef Karthauser wrote: > > ... > > > However, I'd like to control this from within a CMake file, and this > > > doesn't appear possible. From what I can see, > > CMakeDetermineCXXCompiler is

[CMake] regex pitfalls

2007-10-22 Thread Brandon Van Every
On 10/22/07, Josef Karthauser <[EMAIL PROTECTED]> wrote: > > My first thought was to use a regex, however I couldn't get it to do > what I expected - alas. I've switched to a different approach. CMake regexes have a number of pitfalls. A big one is that ^ only matches the beginning of the input

RE: [CMake] NMake questions if I may.

2007-10-22 Thread Josef Karthauser
> From: David Cole [mailto:[EMAIL PROTECTED] > Sent: 22 October 2007 14:29 > To: Josef Karthauser > Cc: cmake@cmake.org > Subject: Re: [CMake] NMake questions if I may. > > nmake /? in a visual studio command prompt should look something like this: > > > C:\Program Files\Microsoft Visual Studio 8\

[CMake] CTest continuous build

2007-10-22 Thread Félix C. Morency
Hi, I made a simple CTest script to perform continuous build but there are some things I don't get: 1) CTest is only probing the SVN for change and when there are changes, files aren't updated. Instead, CTest tells me there is an error is some xml file and cannot parse it. 2) CTest does not perf

Re: [CMake] Ignoring return codes on ADD_CUSTOM_COMMAND (hhc.exe)

2007-10-22 Thread Jesper Eskilson
Stefan Buschmann wrote: > Hi all, > > I'm currently having a problem using the HTMLHelp Compiler (hhc.exe) in > my CMake-Scripts. I build the doxygen docs, then call hhc.exe and the > .chm file is created correctly. > But hhc.exe seems to return an error code, so the build has failed and > my post

Re: [CMake] NMake questions if I may.

2007-10-22 Thread David Cole
nmake /? in a visual studio command prompt should look something like this: C:\Program Files\Microsoft Visual Studio 8\VC>nmake /? Microsoft (R) Program Maintenance Utility Version 8.00.50727.762 Copyright (C) Microsoft Corporation. All rights reserved. Usage: NMAKE @commandfile NMAKE

[CMake] Re: Hyperlinked indexed reference?

2007-10-22 Thread Fernando Cacciola
Brandon Van Every wrote: On 10/19/07, Fernando Cacciola <[EMAIL PROTECTED]> wrote: Is there any hyperlinked (and preferably indexed) command reference? There's the book "Mastering CMake." OK Electronically, nope. It would be nice. We've discussed doc improvement strategies in the past fe

[CMake] undefined reference error

2007-10-22 Thread Paulo Henrique Junqueira Amorim
Hello, I am generating wrapper python linux of the vtk class with slicer3d class. The cmake generate files to compile but when make comand are ocurred error: /VTK/bin/libvtkImaging.so: undefined reference to `vtkImageThresholdBeyond::New() As I define references ? It is

[CMake] Ignoring return codes on ADD_CUSTOM_COMMAND (hhc.exe)

2007-10-22 Thread Stefan Buschmann
Hi all, I'm currently having a problem using the HTMLHelp Compiler (hhc.exe) in my CMake-Scripts. I build the doxygen docs, then call hhc.exe and the .chm file is created correctly. But hhc.exe seems to return an error code, so the build has failed and my post-build commands are not invoked.

[CMake] NMake questions if I may.

2007-10-22 Thread Josef Karthauser
Do we have any NMake users out there? I'm sure someone might be able to answer this for me. It looks like in the past NMake had a -J option, which like the -j of gnu's gmake, causes parallel compilation where possible. This appears to be missing with the NMake I've got with Visual Studio 2005 t

RE: [CMake] Selecting compiler on Windows platform

2007-10-22 Thread Josef Karthauser
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf > Of [EMAIL PROTECTED] > Sent: 22 October 2007 13:36 > To: cmake@cmake.org > Subject: Re: [CMake] Selecting compiler on Windows platform > > On Monday 22 October 2007 11:34, Josef Karthauser wrote: > ... >

Re: [CMake] Selecting compiler on Windows platform

2007-10-22 Thread a . neundorf-work
On Monday 22 October 2007 11:34, Josef Karthauser wrote: ... > However, I’d like to control this from within a CMake file, and this > doesn’t appear possible. From what I can see, CMakeDetermineCXXCompiler is > loaded and executed prior to the CMakeLists.txt file, which means that I > cannot set t

Re: [CMake] environment variables and visual studio

2007-10-22 Thread Sylvain Benner
Is there any way for CMake to set environment variables which can be picked up in Visual Studio's pre/post-build steps? I'm working on a system where I've got a couple of studio project included via the INCLUDE_EXTERNAL_MSPROJECT(), and I would like to be able to refer to things like CMAKE_BIN

Re: [CMake] environment variables and visual studio

2007-10-22 Thread Bill Hoffman
Jesper Eskilson wrote: Is there any way for CMake to set environment variables which can be picked up in Visual Studio's pre/post-build steps? I'm working on a system where I've got a couple of studio project included via the INCLUDE_EXTERNAL_MSPROJECT(), and I would like to be able to refer to

[CMake] environment variables and visual studio

2007-10-22 Thread Jesper Eskilson
Is there any way for CMake to set environment variables which can be picked up in Visual Studio's pre/post-build steps? I'm working on a system where I've got a couple of studio project included via the INCLUDE_EXTERNAL_MSPROJECT(), and I would like to be able to refer to things like CMAKE_BINARY_

[CMake] How to get the result of a test during tests

2007-10-22 Thread Baptiste Derongs
Hello all, I would like to test a property of my system (actually if an MPI function works well). And only if it does, I will launch a part of my tests. If not, only the main part will execute. So I was thinking that the best solution would be to ADD_TEST something that will look at my MPI functi

Re: [CMake] Patch for Eclipse generator

2007-10-22 Thread Pau Garcia i Quiles
Quoting [EMAIL PROTECTED]: I am a busy right now but I think I will be able to work on the Eclipse generator in a couple of days. You both are right my patch does not allow multiple build trees and that is unacceptable. I had not realized that because I usually have only one build tree. I

[CMake] Selecting compiler on Windows platform

2007-10-22 Thread Josef Karthauser
I’m a bit confused, as ever ☺. I’ve got a number of windows compilers, cl and gcc for instance, and I want to specify which one I want to use. I can do this using an environment variable thus, % env CXX=gcc cmake –G’NMake Makefiles’ . which allows CMakeDetermineCXXCompiler.cmake to override

Re: [CMake] Patch for Eclipse generator

2007-10-22 Thread a . neundorf-work
Hi, On Monday 22 October 2007 07:26, Miguel A. Figueroa-Villanueva wrote: > On 10/21/07, Pau Garcia i Quiles wrote: ... > > > How about that: > > > > > > If you run cmake in-source, everything should just work. > > > > > > If you run cmake out-of-source, cmake creates two eclipse projects: one > >

[CMake] ADD_TEST for debug/release configurations?

2007-10-22 Thread Jan Wurster
Dear list, I've run into a problem where I need some testcases to not run in debug configuration (they take ages to complete). Since we're on windows here, I cannot use CMAKE_BUILD_TYPE or similar to just add the test case for release. I've tried my luck with CMAKE_CFG_INTDIR but that didn't se

Re: [CMake] Changing VS2005 Configuration

2007-10-22 Thread Sylvain Benner
When I change the build-configuration using VS2005 the file is modified: [snip] {another_id}.Debug|Win32.ActiveCfg = Release|Win32 {another_id}.Debug|Win32.Build.0 = Release|Win32 [/snip] When I run cmake from scratch and change these two terms manually with a text editor, VS2005 starts in "D

[CMake] Re: dependency error

2007-10-22 Thread Marc Paulescu
Hello, Because I received no reply (maybe because of the attachment) I will post the CMakeLists contents here : #== project(test) if (WIN32) add_definitions(-D_CRT_SECURE_NO_DEPRECATE) add_definitions(-D_CRT_NONSTDC_NO_DEPRECATE) i