Re: [CMake] Changing VS2005 Configuration

2007-10-22 Thread Jakob Santner
Sylvain Benner schrieb: Hello, I am using Visual Studio 8 and cmake 2.4p7 and am trying to set the configuration for a specific project to 'Release'. So I added SET(CMAKE_BUILD_TYPE Release) to CMakeLists.txt and ran cmake. The Visual Studio configuration manager still lists all

[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)

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

[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

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 project in the

[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

[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

[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

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

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

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 the

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: ... However,

[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

[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] 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

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\VCnmake /? Microsoft (R) Program Maintenance Utility Version 8.00.50727.762 Copyright (C) Microsoft Corporation. All rights reserved. Usage: NMAKE @commandfile NMAKE

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-build

[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

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\VCnmake

[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] 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 loaded and

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 the build

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 created

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:

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 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, with

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

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 works

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] 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

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

[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

[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

[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