Re: [CMake] cmake, lex & yacc

2007-12-06 Thread Gonzalo Garramuño
Gonzalo Garramuño wrote: Timur Ivanov wrote: Hello! Sorry if it was discussed already but I can't find anything really useful for me. In current project I use lex & yacc and Makefile rules looks like: cmake currently does not ship with bison and flex modules, unfortunately. Here's a coupl

[CMake] Library dependency

2007-12-06 Thread Anders Backman
Hi all. I have a question regarding library dependency. Im using VC2005. Assume the following: I have a solution with a set of projects, three are libraries and one is an application: A.lib /A.dll B.lib/B.dll : B depends on A.lib, so if I want to use B.lib somewhere, A.libis also automaticall

Re: [CMake] cmake, lex & yacc

2007-12-06 Thread Gonzalo Garramuño
Timur Ivanov wrote: Hello! Sorry if it was discussed already but I can't find anything really useful for me. In current project I use lex & yacc and Makefile rules looks like: cmake currently does not ship with bison and flex modules, unfortunately. Here's a couple of mine. -

[CMake] Trouble with cmake on gcc-xml

2007-12-06 Thread Tony
I run cmake at home on gcc-xml on VC8Express and everything is fine. I run cmake at work on VC8 Pro and everything is fine. I uninstalled VC8Express cleanly, and installed VC8 Pro cleanly at home. Then running cmake fails to create the GCC_XML/Support/Vc8/* patched headers. Does anyone have an i

Re: [CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

2007-12-06 Thread Olumide
Olumide wrote: The directory C:\Work\Demo\TestTexturePlugin\CMakeFiles now contains, among other files, Makefile2, which I assume is the NMake Makefile, and Makefile.cmake. Where can I find more information about these files. I'm not sure which files I need to perform the migration to eclipse.

Re: [CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

2007-12-06 Thread Olumide
Bill Hoffman wrote: Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx -- Configuring done That is success. You would of course need to create a foo.cxx file to be compiled. But the compiler detection worked fine. I would recommend starting from an empty

Re: [CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

2007-12-06 Thread Bill Hoffman
Olumide wrote: Bill Hoffman wrote: Are you running in this directory: C:/Program Files/Common Files/System/Mapi/1033? I'm running the tests you've asked me to in this directory. My projects are in another directory. Can you give the version of cmake and exact commands you are running? I

Re: [CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

2007-12-06 Thread Olumide
Bill Hoffman wrote: Are you running in this directory: C:/Program Files/Common Files/System/Mapi/1033? I'm running the tests you've asked me to in this directory. My projects are in another directory. Can you give the version of cmake and exact commands you are running? I have cmake versi

[CMake] Cross-directory dependencies?

2007-12-06 Thread Bryan O'Sullivan
I have two sibling directories. In one of them, a binary is built, and in the other, that binary is packaged up using a custom command. Is there a way in the DEPENDS clause to express this dependency? http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] FindwxWidgets and wxpng

2007-12-06 Thread James Bigler
Miguel A. Figueroa-Villanueva wrote: On Dec 6, 2007 6:05 PM, James Bigler wrote: James Bigler wrote: In windows it looks for the library path by looking for the wxpng library: FIND_PATH(wxWidgets_LIB_DIR NAMES wxpng.lib wxpngd.lib PATHS ${WX_ROOT_DIR}/lib/vc_lib

Re: [CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

2007-12-06 Thread Bill Hoffman
Olumide wrote: CMake Error: Could not find cmake module file:C:/Program Files/Common Files/System/Mapi/1033/CMakeFiles/CMakeCXXCompiler.cmake CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring done Are you r

Re: [CMake] FindwxWidgets and wxpng

2007-12-06 Thread Miguel A. Figueroa-Villanueva
On Dec 6, 2007 6:05 PM, James Bigler wrote: > James Bigler wrote: > > In windows it looks for the library path by looking for the wxpng library: > > > > FIND_PATH(wxWidgets_LIB_DIR > > NAMES wxpng.lib wxpngd.lib > > PATHS > > ${WX_ROOT_DIR}/lib/vc_lib # prefer stati

Re: [CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

2007-12-06 Thread Olumide
Bill Hoffman wrote: I've started the visual studio (.NET 2003) command prompt as you described and typed the commands cmake -G"Unix Makefiles" C:\Work\Demo\TestTexturePlugin cmake -G"NMake Makefiles" C:\Work\Demo\TestTexturePlugin in it, but I still got the errors: CMAKE_CXX_COMPILER CMake Err

Re: [CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

2007-12-06 Thread Bill Hoffman
Olumide wrote: The command prompt can be found from your start menu: Start Menu -> All Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt. This will give you a regular windows command prompt with all environment variables set up in order for y

Re: [CMake] FindwxWidgets and wxpng

2007-12-06 Thread James Bigler
James Bigler wrote: In windows it looks for the library path by looking for the wxpng library: FIND_PATH(wxWidgets_LIB_DIR NAMES wxpng.lib wxpngd.lib PATHS ${WX_ROOT_DIR}/lib/vc_lib # prefer static ${WX_ROOT_DIR}/lib/vc_dll DOC "Path to wxWidgets l

[CMake] FindwxWidgets and wxpng

2007-12-06 Thread James Bigler
In windows it looks for the library path by looking for the wxpng library: FIND_PATH(wxWidgets_LIB_DIR NAMES wxpng.lib wxpngd.lib PATHS ${WX_ROOT_DIR}/lib/vc_lib # prefer static ${WX_ROOT_DIR}/lib/vc_dll DOC "Path to wxWidgets libraries?" NO

Re: [CMake] Generating makefile from Visual Studio Project (Migrating to Eclipse)

2007-12-06 Thread Olumide
The command prompt can be found from your start menu: Start Menu -> All Programs -> Microsoft Visual Studio 2005 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt. This will give you a regular windows command prompt with all environment variables set up in order for you to be able to

[CMake] library name selection based on build target

2007-12-06 Thread Theodore Omtzigt
I am using a library naming convention that shows which type of run-time it selects on windows. Specifically, a debug target would get a version name like systemc-v2.2.0-mdd.lib, and a release target would be systemc-v2.2.0-mdr.lib, to disambiguate multi-threaded, DLL, Debug/Release versions. N

Re: [CMake] cmake 2.4.8 RC 4

2007-12-06 Thread Mike Jackson
OK. This is on OS X 10.5.1 with the Xcode 3.0 tools running on a MacBook Pro (Core Duo). I was able to pull down the cmake 2.4.8rc4 sources, and do a ./configure make make test 100% tests passed, 0 tests failed out of 69 So at least from that perspective things seem OK.. Is there anything that any

Re: [CMake] function and raise_scope commands

2007-12-06 Thread Miguel A. Figueroa-Villanueva
On Dec 3, 2007 3:07 PM, Ken Martin wrote: > I checked into CVS two new commands; function and raise_scope (well three > commands if you count endfunction) First of all: THANKS!! Great feature to have! Now, I have been using it and exploring its functionality and have come across to things, which

Re: [CMake] cmake 2.4.8 RC 4

2007-12-06 Thread Bill Hoffman
Bill Hoffman wrote: Mike Jackson wrote: What would we have to do to get the OS X 10.5 fixes in the 2.4.8 branch? More and more users are switching to Leopard and having a working cmake under 10.5 is extremely important, not to mention good PR when you release CMake as "Leopard Ready". I do

Re: [CMake] cmake 2.4.8 RC 4

2007-12-06 Thread Sean McBride
On 12/6/07 2:31 PM, Bill Hoffman said: >> What would we have to do to get the OS X 10.5 fixes in the 2.4.8 branch? >> More and more users are switching to Leopard and having a working cmake >> under 10.5 is extremely important, not to mention good PR when you >> release CMake as "Leopard Ready". >

Re: [CMake] cmake 2.4.8 RC 4

2007-12-06 Thread Bill Hoffman
Mike Jackson wrote: What would we have to do to get the OS X 10.5 fixes in the 2.4.8 branch? More and more users are switching to Leopard and having a working cmake under 10.5 is extremely important, not to mention good PR when you release CMake as "Leopard Ready". I don't remember the list

Re: [CMake] cmake 2.4.8 RC 4

2007-12-06 Thread Mike Jackson
What would we have to do to get the OS X 10.5 fixes in the 2.4.8 branch? More and more users are switching to Leopard and having a working cmake under 10.5 is extremely important, not to mention good PR when you release CMake as "Leopard Ready". -- Mike Jackson Senior Research Engineer In

Re: [CMake] cmake 2.4.8 RC 4

2007-12-06 Thread Bill Hoffman
Sean McBride wrote: On 12/5/07 5:13 PM, Bill Hoffman said: I have a beta release for 2.4.8 ready for cmake. This will be the last release of the 2.4.X branch. The next release will be 2.6.0. So, please make sure you test it if you are interested in a 2.4.8. Send any issues to me or the cm

Re: [CMake] cmake 2.4.8 RC 4

2007-12-06 Thread Sean McBride
On 12/5/07 5:13 PM, Bill Hoffman said: >I have a beta release for 2.4.8 ready for cmake. This will be the last >release of the 2.4.X branch. The next release will be 2.6.0. So, >please make sure you test it if you are interested in a 2.4.8. Send any >issues to me or the cmake list. Thanks. B

[CMake] Create a Space delimited List

2007-12-06 Thread Mike Jackson
How would I go about creating a space delimited list? Currently I have something like this: IF (QT_USE_QTNETWORK) SET (OS_X_DEP_QT_LIBS "${OS_X_DEP_QT_LIBS}" "QtNetwork ") ENDIF (QT_USE_QTNETWORK) IF (NOT QT_DONT_USE_QTCORE) SET (OS_X_DEP_QT_LIBS "${OS_X_DEP_QT_LIBS}

Re: [CMake] CMake cannot build a simple example on one of our computers

2007-12-06 Thread Marcus
Can you suggest any further experiments? Do you have any idea what the problem could be? Can you try this: edit cmCoreTryCompile.cxx around line 216 and add the // ADD line: fprintf(fout, " ${COMPILE_DEFINITIONS}\")\n"); fprintf(fout, "INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES})\n

RE: [CMake] Creating a visual studio project with non .cpp or .h files in it.

2007-12-06 Thread Josef Karthauser
> -Original Message- > From: Bill Hoffman [mailto:[EMAIL PROTECTED] > Sent: 06 December 2007 13:23 > To: Josef Karthauser > Cc: Sylvain Benner; CMake ML > Subject: Re: [CMake] Creating a visual studio project with non .cpp or > .h files in it. > > Josef Karthauser wrote: > > It would be us

RE: [CMake] Windows ifort problems, possible bug

2007-12-06 Thread Alin M Elena
Hi Bill, I have checked the stuff. Everything is ok. Now I can build a nmake project without any touch.exe. Alin I have changed cmake to no longer use touch for this. A fixed version can be found here: http://www.cmake.org/files/vCVS/cmake-2.5.20071205-win32-x86.exe If you have the time,

Re: [CMake] Creating a visual studio project with non .cpp or .h files in it.

2007-12-06 Thread Bill Hoffman
Josef Karthauser wrote: It would be useful if there was a standard way of doing this within CMake; maybe there is in 2.6? Anyway, I boiled your ideas down into a single 'ADD_DOCUMENTATION()' command - see attached patch to 2.4.7. It should probably be called ADD_AUX_FILE() or something though,

Re: [CMake] cmake 2.4.8 RC 4

2007-12-06 Thread Bill Hoffman
Torsten Martinsen wrote: Bill Hoffman wrote: Torsten Martinsen wrote: Could we please get the patch for bug 3218 into this release? I am not sure. The last time I applied that patch or a similar one lots of tests failed and there was trouble so I had to undo it.

RE: [CMake] Creating a visual studio project with non .cpp or .h files in it.

2007-12-06 Thread Josef Karthauser
It would be useful if there was a standard way of doing this within CMake; maybe there is in 2.6? Anyway, I boiled your ideas down into a single 'ADD_DOCUMENTATION()' command - see attached patch to 2.4.7. It should probably be called ADD_AUX_FILE() or something though, as we also use it to add e

[CMake] Problem with 'mpi.mod.stamp' fake file

2007-12-06 Thread Baptiste Derongs
Hello all, Sometines cmake needs to create a fake mpi.mod.stamp file cause it's required by some binaries. It works well in a single directory, but I encouter a problem in a source tree. Here is my source tree : Root - Folder1.1 -- Some subfolders - Folder1.2 -- Folder 1.2.1 --- -- Folder 1.2.2