[CMake] Converting xml-Files during build

2008-08-18 Thread Timo Penndorf
Hello, I try to convert the build process of my project from gnu make to cmake. During the build (of a shared library) I have to convert an additional xml-File from one xml-language to another. Therefor I use a xsl-stylesheet and 'xsltproc'. The gnu make rule looks like this

[CMake] Customizing manifest

2008-08-18 Thread Pe�iva Jan
Hi, is there any way of customizing manifest in cmake (using MSVC 2008 and Vista)? Particularly, I need to modify requestedExecutionLevel. If there is not such possibility, are there any plans for next versions of cmake? I sent FindInventor.cmake in recent mail[*]. Use it or write

Re: [CMake] Customizing manifest

2008-08-18 Thread Bill Hoffman
? Jan wrote: Hi, is there any way of customizing manifest in cmake (using MSVC 2008 and Vista)? Particularly, I need to modify requestedExecutionLevel. If there is not such possibility, are there any plans for next versions of cmake? You can do something like this:

Re: [CMake] Build different targets depending on build configuration

2008-08-18 Thread Steven Dwyer
I should clarify my original question, Our unit/functional tests appear in the same files as the source they're exercising (we use ifdefs to control if they're compiled in or not). I think you're suggesting that we add new targets for each existing configuration (e.g. Debug outputs program.exe

Re: [CMake] Converting xml-Files during build

2008-08-18 Thread Alan W. Irwin
On 2008-08-18 14:24+0200 Timo Penndorf wrote: Now my question is, how can I create such a build rule with cmake. I tried (with 'cp' just to get it work...) ADD_CUSTOM_COMMAND(OUTPUT $(CMAKE_BUILD_DIR)/file.xmlt COMMAND cp ${CMAKE_SOURCE_DIR}/file.xmlt

Re: [CMake] Build different targets depending on build configuration

2008-08-18 Thread Mike Jackson
You might be able to get away with something like: OPTION(BUILD_TESTING Build Unit Testing ON) IF(BUILD_TESTING) ENABLE_TESTING() ADD_DEFINITIONS(-WINCLUDE_TEST_CODE) ENDIF(BUILD_TESTING) Then in ccmake/cmake-gui you can toggle the ENABLE_TESTING checkbox on and off. There may be some

[CMake] Eclipse Generator: build specific environment variables

2008-08-18 Thread Olaf Peter
Hi, how can I set environment variables for eclipse? cmakelist.txt is configured http://www.cmake.org/Wiki/CMake:Eclipse: Parsing Errors more efficiently. Anyway, it seems the parser expect english :-) How can I set the environment variable LANG=en for compiler or make fot he build/compiler

[CMake] Make program arguments

2008-08-18 Thread Moreland, Kenneth
Is there a way to add arguments to the invocation of make? In particular, I want to add the -j flag to do parallel compiles. I tried setting the CMAKE_MAKE_PROGRAM variable to /usr/bin/make -j8, but I get the following error when I try to compile. CMake Error: Generator: execution of make

Re: [CMake] Make program arguments

2008-08-18 Thread Andreas Pakulat
On 18.08.08 14:02:29, Moreland, Kenneth wrote: Is there a way to add arguments to the invocation of make? In particular, I want to add the -j flag to do parallel compiles. I tried setting the CMAKE_MAKE_PROGRAM variable to /usr/bin/make -j8, but I get the following error when I try to

Re: [CMake] Make program arguments

2008-08-18 Thread Bill Hoffman
Moreland, Kenneth wrote: Is there a way to add arguments to the invocation of make? In particular, I want to add the -j flag to do parallel compiles. I tried setting the CMAKE_MAKE_PROGRAM variable to /usr/bin/make -j8, but I get the following error when I try to compile. CMake Error:

Re: [CMake] Make program arguments

2008-08-18 Thread David Thompson
Is there a way to add arguments to the invocation of make? In particular, I want to add the -j flag to do parallel compiles. I tried setting the CMAKE_MAKE_PROGRAM variable to /usr/bin/make -j8, but I get the following error when I try to compile. CMake Error: Generator: execution of make

Re: [CMake] Make program arguments

2008-08-18 Thread David Cole
If you are using a new style command-based ctest -S script, you can: SET(CTEST_BUILD_FLAGS -j8) before using the CTEST_BUILD command. On Mon, Aug 18, 2008 at 4:02 PM, Moreland, Kenneth [EMAIL PROTECTED]wrote: Is there a way to add arguments to the invocation of make? In particular, I want

Re: [CMake] Make program arguments

2008-08-18 Thread Moreland, Kenneth
True, but I'm actually currently using the Eclipse generator right now, and Eclipse uses the CMake value for the make program (and arguments). I can change the make program in the Eclipse IDE, but it seems to get reset every time I re-run CMake. -Ken On 8/18/08 2:17 PM, Andreas Pakulat [EMAIL

[CMake] fix for cmake cvs msvc linking problem

2008-08-18 Thread Ralf Habacker
Hi, with recent cvs code MS Visual Studio 2005 Express Edition has linking problems. The appended patch fix it. Regards Ralf Index: CMakeLists.txt === RCS file: /cvsroot/CMake/CMake/Source/CMakeLists.txt,v retrieving revision