Re: [CMake] cmake locks when parsing a fortran file ending with a comment and not end-of-line

2007-06-05 Thread Arjen Markus
lucatrv wrote: As the subject says, I found that cmake locks when parsing a file ending with a comment and without an end-of-line character. At least this happens with fortran files, but I suspect it could happen also with other languages (though I've not tested it). However, I send enclosed

Re: [CMake] visual studio converter?

2007-06-05 Thread Brandon Van Every
On 6/5/07, Jon W <[EMAIL PROTECTED]> wrote: On 6/5/07, Brandon Van Every <[EMAIL PROTECTED]> wrote: > On 6/5/07, Jon W <[EMAIL PROTECTED]> wrote: > > Are there any tools available to convert Visual Studio files to > > cmakelists.txt? I have hundreds of vcproj files and this would help > > make t

Re: [CMake] pkg-config and cache

2007-06-05 Thread Alan W. Irwin
On 2007-06-06 00:16+0200 Andreas Beckermann wrote: Hi I am using cmake-2.4.5 on Linux along with the FindPkgConfig.cmake file from current cmake cvs. The pkg_check_modules() macro works mostly fine (thanks a lot, btw, this saved me a lot of work), however I have one problem with it: once it chec

Re: [CMake] visual studio converter?

2007-06-05 Thread Jon W
On 6/5/07, Brandon Van Every <[EMAIL PROTECTED]> wrote: On 6/5/07, Jon W <[EMAIL PROTECTED]> wrote: > Are there any tools available to convert Visual Studio files to > cmakelists.txt? I have hundreds of vcproj files and this would help > make the conversion to cmake easier. I don't know of any.

Re: [CMake] visual studio converter?

2007-06-05 Thread Brandon Van Every
On 6/5/07, Jon W <[EMAIL PROTECTED]> wrote: Are there any tools available to convert Visual Studio files to cmakelists.txt? I have hundreds of vcproj files and this would help make the conversion to cmake easier. I don't know of any. Maybe someone has some homebrew. What is driving the need

Re: [CMake] Circular Dependancy?

2007-06-05 Thread Mike Jackson
All correct. Basically I have a project (MXADataModel) that creates a library. Then I have another project that uses that library. I want to make sure that the library is built FIRST and built into the bin directory of the PFImport Project. I do not want to "install" the MXADataModel into /

Re: [CMake] Circular Dependancy?

2007-06-05 Thread Eric Noulard
2007/6/5, Mike Jackson <[EMAIL PROTECTED]>: When I try as suggested I get the following error: make -C /Users/mjackson/Task_7/MXA_Workspace/PFImport/Build all CMake Error: Error in cmake code at /Users/mjackson/Task_7/MXA_Workspace/PFImport/CMakeLists.txt:23: ADD_SUBDIRECTORY not given a binary

Re: [CMake] Three problems with cmake under windows

2007-06-05 Thread Jack Kelly
lucatrv wrote: 2) Since I have two fortran compilers installed, sometimes I chose to use gfortran and sometimes ifort. However, If I use the following commands in this order: PROJECT (hello Fortran) SET (CMAKE_Fortran_COMPILER gfortran) cmake still tests ifort working when creating the makefile.

[CMake] visual studio converter?

2007-06-05 Thread Jon W
Are there any tools available to convert Visual Studio files to cmakelists.txt? I have hundreds of vcproj files and this would help make the conversion to cmake easier. Thanks, Jon ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/lis

[CMake] pkg-config and cache

2007-06-05 Thread Andreas Beckermann
Hi I am using cmake-2.4.5 on Linux along with the FindPkgConfig.cmake file from current cmake cvs. The pkg_check_modules() macro works mostly fine (thanks a lot, btw, this saved me a lot of work), however I have one problem with it: once it checked whether the modules are available, it defines a

Re: [CMake] Circular Dependancy?

2007-06-05 Thread Mike Jackson
When I try as suggested I get the following error: make -C /Users/mjackson/Task_7/MXA_Workspace/PFImport/Build all CMake Error: Error in cmake code at /Users/mjackson/Task_7/MXA_Workspace/PFImport/CMakeLists.txt:23: ADD_SUBDIRECTORY not given a binary directory but the given source directory "/

Re: [CMake] Circular Dependancy?

2007-06-05 Thread Eric Noulard
2007/6/5, David Cole <[EMAIL PROTECTED]>: The thing that's strange about it is the second arg to ADD_SUBDIRECTORY. That should be a binary directory that is used by no other ADD_SUBDIRECTORY call and it should be different than the main PROJECT_BINARY_DIR as well... I didn't know thta (in fact

Re: [CMake] Circular Dependancy?

2007-06-05 Thread David Cole
The thing that's strange about it is the second arg to ADD_SUBDIRECTORY. That should be a binary directory that is used by no other ADD_SUBDIRECTORY call and it should be different than the main PROJECT_BINARY_DIR as well... It should perhaps be "${PROJECT_BINARY_DIR}/MXADataModel" ...? HTH, Dav

[CMake] cmake locks when parsing a fortran file ending with a comment and not end-of-line

2007-06-05 Thread lucatrv
As the subject says, I found that cmake locks when parsing a file ending with a comment and without an end-of-line character. At least this happens with fortran files, but I suspect it could happen also with other languages (though I've not tested it). However, I send enclosed a simple fortra

Re: [CMake] Circular Dependancy?

2007-06-05 Thread Eric Noulard
2007/6/5, Mike Jackson <[EMAIL PROTECTED]>: I was updating some of my CMakeLists.txt files to use the ADD_SUBDIRECTORY command instead of the SUBDIRS command and now I am getting the following when I build: make -C /Users/mjackson/Task_7/MXA_Workspace/PFImport/Build all -- Configuring done -- Ge

Re: [CMake] question on removing compiler flags

2007-06-05 Thread Philip Lowman
Pau Garcia i Quiles wrote: Quoting Philip Lowman <[EMAIL PROTECTED]>: We added the "/Za" (disable language extensions) flag to our compile flags and we're trying to find a way to remove it selectively on a per project basis since some Windows code needs language extensions to compile properly.

Re: [CMake] Three problems with cmake under windows

2007-06-05 Thread lucatrv
Hi, first of all, sorry for my late reply. 1) the default intel fortran installation set two environment variables FFLAGS and F90FLAGS, with the following value: /w /I:"C:\Programmi\VNI\CTT6.0\include\IA32" /fpe:3 /nologo. I found that cmake have problems when it tests if the ifort compiler wo

[CMake] Circular Dependancy?

2007-06-05 Thread Mike Jackson
I was updating some of my CMakeLists.txt files to use the ADD_SUBDIRECTORY command instead of the SUBDIRS command and now I am getting the following when I build: make -C /Users/mjackson/Task_7/MXA_Workspace/PFImport/Build all -- Configuring done -- Generating done -- Build files have been wr

Re: [CMake] question on removing compiler flags

2007-06-05 Thread Pau Garcia i Quiles
Quoting Philip Lowman <[EMAIL PROTECTED]>: We added the "/Za" (disable language extensions) flag to our compile flags and we're trying to find a way to remove it selectively on a per project basis since some Windows code needs language extensions to compile properly. The REMOVE_DEFINITIONS() do

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Mike Jackson
Huh.. never noticed that.. or something about my setup was preventing it from working. So I just tried to change my CMakeLists.txt file and then just hit "Command-B" to build and Cmake reran. Good Job CMake Team !!. Never noticed that in the past. Thanks for "Teaching me something" today. -

[CMake] question on removing compiler flags

2007-06-05 Thread Philip Lowman
We added the "/Za" (disable language extensions) flag to our compile flags and we're trying to find a way to remove it selectively on a per project basis since some Windows code needs language extensions to compile properly. The REMOVE_DEFINITIONS() documentation states: "Removes flags from c

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Joachim Zettler
Thank you, now with all your input it should be clear to me how to set up the two development trees. I will keep you informed tomorrow. With best regards, Joachim 2007/6/5, Alexander Neundorf <[EMAIL PROTECTED]>: On Tuesday 05 June 2007 10:43, Joachim Zettler wrote: > Hmm... > > this sounds

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Alexander Neundorf
On Tuesday 05 June 2007 10:43, Joachim Zettler wrote: > Hmm... > > this sounds difficult to implement into Eclipse, isnt it? Well, you need to create two "makefile target" trees and then build the targets in the tree you want. Alex ___ CMake mailing li

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Alexander Neundorf
On Tuesday 05 June 2007 10:41, Mike Jackson wrote: > On Jun 5, 2007, at 10:19 AM, Joachim Zettler wrote: > > Thx...now its running just fine. I had to change the build > > directory :) > > > > Now there is only the cmake thing left. Is it possible to tell > > eclipse that it should start cmake prio

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Joachim Zettler
Hmm... this sounds difficult to implement into Eclipse, isnt it? So we have two different makefiles..one for release and one for debug. I thought I can handle this by just generating a Target with release and debug and then in the makefile there is a switch if to choose makefile.debug or makefil

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Brandon Van Every
On 6/5/07, Joachim Zettler <[EMAIL PROTECTED]> wrote: Hehe, it works perfectly...thank you very much :) Now only one topic is still open :( The release and debug topic :) Hopefully I can handle this as fast as the last problems :) Creating release, debug, and other configurations all at once

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Mike Jackson
On Jun 5, 2007, at 10:19 AM, Joachim Zettler wrote: Thx...now its running just fine. I had to change the build directory :) Now there is only the cmake thing left. Is it possible to tell eclipse that it should start cmake prior to starting the make process? I am not finding an option to

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Alexander Neundorf
On Tuesday 05 June 2007 10:34, Joachim Zettler wrote: > Hehe, > > it works perfectly...thank you very much :) > > Now only one topic is still open :( The release and debug topic :) > Hopefully I can handle this as fast as the last problems :) You need to set up a separate build tree for each diffe

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Joachim Zettler
Hehe, it works perfectly...thank you very much :) Now only one topic is still open :( The release and debug topic :) Hopefully I can handle this as fast as the last problems :) Thx a lot...you already saved my day :) Joachim 2007/6/5, Mike Jackson <[EMAIL PROTECTED]>: On Jun 5, 2007, at 9:

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Brandon Van Every
On 6/5/07, Joachim Zettler <[EMAIL PROTECTED]> wrote: Hi, here is the error i get in eclipse. please give the output with VERBOSE=1. Unless that's really just it? Maybe it has to do with the "all" but i am absolutely not shure what this is :( Concerning cmake at all. If you execute mingw32-m

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Joachim Zettler
Hi, here is the error i get in eclipse. Maybe it has to do with the "all" but i am absolutely not shure what this is :( Concerning cmake at all. If you execute mingw32-make -f Makefile directly from the command line in the build directory then everything is working just fine and the project is co

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Mike Jackson
On Jun 5, 2007, at 9:41 AM, Joachim Zettler wrote: Dear all, thank you for your help up to now. I followed the tutorials you provided to me and made a Standard C++ makefile project. Afterwards I tried to adjust the make command but it is not working. Here you can find the command. ming

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Joachim Zettler
Thx...now its running just fine. I had to change the build directory :) Now there is only the cmake thing left. Is it possible to tell eclipse that it should start cmake prior to starting the make process? And what about the release and debug versions. Is there an eclipse switch to change it quic

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Eric Noulard
2007/6/5, Joachim Zettler <[EMAIL PROTECTED]>: Hi, here is the error i get in eclipse. Maybe it has to do with the "all" but i am absolutely not shure what this is :( Concerning cmake at all. If you execute mingw32-make -f Makefile directly from the command line in the build directory then every

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Mike Jackson
Try the following: mingw32-make -f build\ instead of what you have. If the MinGW Make is like Unix Make then you need to provide the _directory_ where the makefile is located, not the path to the makefile itself. -- Mike Jackson Senior Research Engineer Innovative Management & Technolo

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Brandon Van Every
On 6/5/07, Joachim Zettler <[EMAIL PROTECTED]> wrote: Dear all, thank you for your help up to now. I followed the tutorials you provided to me and made a Standard C++ makefile project. Afterwards I tried to adjust the make command but it is not working. Here you can find the command. mingw32-m

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Joachim Zettler
Dear all, thank you for your help up to now. I followed the tutorials you provided to me and made a Standard C++ makefile project. Afterwards I tried to adjust the make command but it is not working. Here you can find the command. mingw32-make -f build\Makefile The makefile is actually in a bu

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Mike Jackson
http://www.cmake.org/Wiki/CMake_Editors_Support There is an entry for using CMake with Eclipse. The wiki article is written assuming Unix/Linux/OS X but there should be no reason why the same would not work for MinGW. Note I have NOT tried it. The basics are: 1: Use CMake on Windows to gene

Re: [CMake] Cmake with Eclipse

2007-06-05 Thread Eric Noulard
2007/6/5, Joachim Zettler <[EMAIL PROTECTED]>: Dear all, I want to integrate cmake with the ECLIPSE IDE and cdt. To be honest I am a beginner and therefore I have not really an idea on how to handle it. I use MinGW with WinXP to develop under Windows. It would be very nice if somebody can help

[CMake] Cmake with Eclipse

2007-06-05 Thread Joachim Zettler
Dear all, I want to integrate cmake with the ECLIPSE IDE and cdt. To be honest I am a beginner and therefore I have not really an idea on how to handle it. I use MinGW with WinXP to develop under Windows. It would be very nice if somebody can help me on how to set up Eclipse to use cmake to gen

[CMake] how to use a cross linker

2007-06-05 Thread abhijeet mhatre
Hi I am using cmake for sometime now and I am quite impressed by it. there are yet some areas that I need to understand more. If I am using a cross linker, say ld-m68k .. how do I incorporate it into the cmake process? it seems that cmake assumes that the compiler itself will do the linking.