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

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" <[EMAI

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 >

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

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: Genera

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 c

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

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

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 ra

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 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] Build different targets depending on build configuration

2008-08-18 Thread Mike Jackson
My experiences in line.. On Aug 18, 2008, at 8:38 AM, Steven Dwyer wrote: I'm looking at moving from scons to cmake, but after reading through the documentation and mailing lists, I'm not sure if it will handle everything that I want to do. In particular: I want to build three different c

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: ADD_CUSTOM_COMMAND(

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

[CMake] Build different targets depending on build configuration

2008-08-18 Thread Steven Dwyer
I'm looking at moving from scons to cmake, but after reading through the documentation and mailing lists, I'm not sure if it will handle everything that I want to do. In particular: I want to build three different configurations: Debug, Release, Test The input to the three configurations is m

[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 $(BUILD_DIR)/%.xmlt: