Re: Re: [CMake] Add include files

2007-11-13 Thread Yinon Ehrlich
Alexander Neundorf wrote: On Sunday 11 November 2007, Yinon Ehrlich wrote: Hi, * I'm new to CMake, trying to convert our existing GNU Makefiles to CMake. * I have a GCC compilation line that uses GCC's -include direction The argument to -include is a file which will be included,

Re: [CMake] How to redirect output (.o file generattion) in specific directory

2007-11-13 Thread Amit C. Kr. Saluja
No, AFAIK this is fix and you can't change it. Why do you want to do that ? (I recommend you just get used to the location of the object files). I want to add the gcc options for gcov in Makefile. The gcc flags dumps the *.gcno files at the location of .o files. So, if you run the gcov on

RE: [CMake] Choosing between debug and release variants of third-party libraries

2007-11-13 Thread Torsten Martinsen
Philip Lowman mailto:[EMAIL PROTECTED] wrote: So you can't do something like this? FIND_LIBRARY(qtmain_release qtmain PATHS C:/lang/qt/3.3.4r/lib NO_DEFAULT_PATH) FIND_LIBRARY(qtmain_debug qtmain PATHS C:/lang/qt/3.3.4/lib NO_DEFAULT_PATH) # declare your targets.

Re: [CMake] Linking Libraries

2007-11-13 Thread abboti
Adding each of the libraries to the TARGET_LINK_LIBRARIES, instead of this LINK_LIBRARIES did not work. This is the part that confuses me the most. What LINK_LIBRARIES doing that TARGET_LINK_LIBRARIES is not? ==Original message text=== On Mon, 12 Nov 2007 12:45:13 EST

Re: [CMake] How to redirect output (.o file generattion) in specific directory

2007-11-13 Thread Bill Hoffman
Amit C. Kr. Saluja wrote: No, AFAIK this is fix and you can't change it. Why do you want to do that ? (I recommend you just get used to the location of the object files). I want to add the gcc options for gcov in Makefile. The gcc flags dumps the *.gcno files at the location of .o files.

Re: [CMake] Linking Libraries

2007-11-13 Thread abboti
I'll also add that the project compiles using MS Visual C++ with the LINK_LIBRARIES removed (no reference to these VTKLibraries anywhere in the top-level CMakeLists. ==Original message text=== On Tue, 13 Nov 2007 7:17:50 EST [EMAIL PROTECTED] wrote: Adding each of

[CMake] RVDS and CMake

2007-11-13 Thread Luis Ramirez
Hi people, I would like to know if someone has experience with armcc compiler provide by the RVDS compilation suite. I am work normally with cygwin environment and my current project has manual Makefile that are impossible to manage for new people. I would like to suggest a construction software

Re: [CMake] RVDS and CMake

2007-11-13 Thread Bill Hoffman
Luis Ramirez wrote: Hi people, I would like to know if someone has experience with armcc compiler provide by the RVDS compilation suite. I am work normally with cygwin environment and my current project has manual Makefile that are impossible to manage for new people. I would like to suggest

Re: [CMake] RVDS and CMake

2007-11-13 Thread Luis Ramirez
I'm running with cmake release 2.4.7 according with: http://www.kwwidgets.org/Wiki/CMake_Cross_Compiling Basically it said that cross compilers are supported from 2.6.0 (not yet released). The compilation with cross compilers is not supported in my current version. I suppose that this could be

Re: [CMake] RVDS and CMake

2007-11-13 Thread Alexander Neundorf
On Tuesday 13 November 2007, Luis Ramirez wrote: I'm running with cmake release 2.4.7 according with: http://www.kwwidgets.org/Wiki/CMake_Cross_Compiling Basically it said that cross compilers are supported from 2.6.0 (not yet released). The compilation with cross compilers is not

Re: [CMake] Linking Libraries

2007-11-13 Thread Brandon Van Every
On Nov 12, 2007 12:32 PM, [EMAIL PROTECTED] wrote: SUBDIRS( wrap ) This is archaic. The preferred command nowadays is ADD_SUBDIRECTORY. There are some differences between the two commands IIRC. I don't know that it affects your problem, but who knows? Cheers, Brandon Van Every

[CMake] Re: dangerous regex in CHECK_C_SOURCE_COMPILES

2007-11-13 Thread Brandon Van Every
I see the same construct in CHECK_INCLUDE_FILES. What is the intent? This is not safe. Cheers, Brandon Van Every On Nov 7, 2007 11:38 AM, Brandon Van Every [EMAIL PROTECTED] wrote: It begins with: MACRO(CHECK_C_SOURCE_COMPILES SOURCE VAR) IF(${VAR} MATCHES ^${VAR}$) What is the intent

[CMake] Ada support

2007-11-13 Thread Alexander Camek
Hi all, is there still the plan to use Ada with CMake? Greetings Alexander ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

[CMake] Generating static and shared libs

2007-11-13 Thread Alexander Camek
Hi all, I am using here MinGW C and C++ source code to build some libraries. Now what me wonders is that I am getting sometimes static libraries additional to my dynamic libraries. Although I always build shared libraries. What is the strategy when to build only the dynamic libraries and

Re: [CMake] Ada support

2007-11-13 Thread Alexander Neundorf
On Tuesday 13 November 2007, Alexander Camek wrote: Hi all, is there still the plan to use Ada with CMake? More or less, yes. Alan, what the current state ? Alex ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Re: dangerous regex in CHECK_C_SOURCE_COMPILES

2007-11-13 Thread David Cole
The intent is to use a construct that works even with older CMake versions such that the code enclosed in the construct only gets run on the first configure. I'm pretty sure it's only dangerous with variables that have dangerous names in the first place. Do you have a concrete example that is

Fwd: [CMake] Generating static and shared libs

2007-11-13 Thread Eric Noulard
I did forgot the list -- Forwarded message -- From: Eric Noulard [EMAIL PROTECTED] Date: 13 nov. 2007 21:34 Subject: Re: [CMake] Generating static and shared libs To: Alexander Camek [EMAIL PROTECTED] 2007/11/13, Alexander Camek [EMAIL PROTECTED]: Hi all, I am using here

Re: [CMake] Re: dangerous regex in CHECK_C_SOURCE_COMPILES

2007-11-13 Thread Bill Hoffman
Brandon Van Every wrote: I see the same construct in CHECK_INCLUDE_FILES. What is the intent? This is not safe. Cheers, Brandon Van Every On Nov 7, 2007 11:38 AM, Brandon Van Every [EMAIL PROTECTED] wrote: It begins with: MACRO(CHECK_C_SOURCE_COMPILES SOURCE VAR) IF(${VAR} MATCHES

Re: [CMake] cmake -DCMAKE_CXX_COMPILER=g++ does not work as expected

2007-11-13 Thread Alexander Neundorf
On Tuesday 13 November 2007, Erik Johansson wrote: Hi, Running cmake with -DCMAKE_CXX_COMPILER=g++ gives the following output: -- Check for working CXX compiler: g++ -- Check for working CXX compiler: g++ -- works But building fails since it tries to use g++ from the build dir. From

Re: [CMake] Ada support

2007-11-13 Thread Alexander Camek
Hi, is there still the plan to use Ada with CMake? More or less, yes. Alan, what the current state ? Because when it is the plan to use it with CMake, then there will be a problem for using dlls under Windows. Without using the gnatbind call by libraries it is not possible to call a

Re: Fwd: [CMake] Generating static and shared libs

2007-11-13 Thread Christian Ehrlicher
Alexander Camek schrieb: Hi, I am using here MinGW C and C++ source code to build some libraries. Now what me wonders is that I am getting sometimes static libraries additional to my dynamic libraries. I think you are talking about the import library

Re: Fwd: [CMake] Generating static and shared libs

2007-11-13 Thread Alexander Camek
Hi, No, you *really* should read on www.mingw.org and inform you about import libs. I will do that, thanks. thought that i had understand them :( Greetings Alexander ___ CMake mailing list CMake@cmake.org

Re: Fwd: [CMake] Generating static and shared libs

2007-11-13 Thread Christian Ehrlicher
Alexander Camek schrieb: Hi, No, you *really* should read on www.mingw.org and inform you about import libs. I will do that, thanks. thought that i had understand them :( I already told you all you have to know Windows needs 'static import libs' to link against a shared lib. Nothing

Re: [CMake] Re: dangerous regex in CHECK_C_SOURCE_COMPILES

2007-11-13 Thread Brandon Van Every
On Nov 13, 2007 3:35 PM, Bill Hoffman [EMAIL PROTECTED] wrote: A variable name should not contain special characters anyway. That, however, is not error checking or safety. That's hope. I haven't synthesized an example that will kill CMake in the real world. At some point I will do so and

[CMake] Performing cross-platform build - how ?

2007-11-13 Thread Stephen Collyer
I am almost a total cmake newbie. I've been looking through the wiki for information on how one actually performs a cross-platform build with cmake, but I can't find any. Can someone tell me if my thinking outline here makes sense: 1. Let's assume I want to do a Linux and Win32 build from the

Re: [CMake] Performing cross-platform build - how ?

2007-11-13 Thread Alexander Neundorf
On Tuesday 13 November 2007, Stephen Collyer wrote: I am almost a total cmake newbie. I've been looking through the wiki for information on how one actually performs a cross-platform build with cmake, but I can't find any. Can someone tell me if my thinking outline here makes sense: 1. Let's

Re: [CMake] Performing cross-platform build - how ?

2007-11-13 Thread Matthew McCormick
On 11/13/07, Stephen Collyer [EMAIL PROTECTED] wrote: 1. Let's assume I want to do a Linux and Win32 build from the same source tree. 2. I have a directory tree like: ./src/whatever ./build/linux ./build/win32 ./install/linux/whatever ./install/win32/whatever All of my cross-platform source

Re: [CMake] Re: dangerous regex in CHECK_C_SOURCE_COMPILES

2007-11-13 Thread Bill Hoffman
Brandon Van Every wrote: On Nov 13, 2007 3:35 PM, Bill Hoffman [EMAIL PROTECTED] wrote: A variable name should not contain special characters anyway. That, however, is not error checking or safety. That's hope. I haven't synthesized an example that will kill CMake in the real world. At

Re: [CMake] Re: dangerous regex in CHECK_C_SOURCE_COMPILES

2007-11-13 Thread Brandon Van Every
On Nov 13, 2007 6:28 PM, Bill Hoffman [EMAIL PROTECTED] wrote: Brandon Van Every wrote: On Nov 13, 2007 3:35 PM, Bill Hoffman [EMAIL PROTECTED] wrote: A variable name should not contain special characters anyway. That, however, is not error checking or safety. That's hope. I haven't

Re: [CMake] Ada support

2007-11-13 Thread Alan W. Irwin
On 2007-11-13 21:52+0100 Alexander Camek wrote: Hi, [asked by Alexander Camek] is there still the plan to use Ada with CMake? [answered by Alexander Neundorf] More or less, yes. Alan, what the current state ? The PLplot Ada bindings are implemented as an Ada library. We use CMake to build