Re: [CMake] How to compile a file only when linking anyhow?

2008-04-21 Thread Mark Jonas
Hi Alex, > > Do you have another idea? > > Hmm, so you need to execute something in case something will actually be > built. I don't see a clean way, only hacks: > > Maybe you can do something with add_custom_target() ? > > add_custom_target(DateHelperTarget COMMAND your_fancy_date_tool) > >

[CMake] Redirect stdout from COMMAND in ADD_CUSTOM_COMMAND (CMake 2.6 RC8)

2008-04-21 Thread Alejandro Morell Garcí­a
I'm trying to convert the following script into CMake add_custom_command: echo #include "glib-object.h" > gstmarshal.c.tmp echo #include "gstmarshal.h" >> gstmarshal.c.tmp glib-genmarshal --body --prefix=gst_marshal ..\..\gst\gstmarshal.list >> gstmarshal.c.tmp move gstmarshal.c.tmp

Re: [CMake] CMake doesn't accept multiple entries for a variable on the commandline

2008-04-21 Thread Andreas Pakulat
On 17.04.08 07:03:32, David Cole wrote: > Try quoting the whole thing: > cmake "-DCMAKE_CXX_FLAGS=-pedantic -g3 -O0" Doesn't work either. Shall I open a bugreport? Andreas -- You are the only person to ever get this message. ___ CMake mailing list CMa

Re: [CMake] How to tell CMake to use --start-group and --end-group during linking?

2008-04-21 Thread Mark Jonas
Hi, > I am currently trying to convert a big project containing Fortran and C > sources to use CMake. There are lots of circular dependencies between > libraries, > so I either have to specify libraries on the link line multiple times or > use the linker options --start-group and --end-group for

Re: [CMake] Redirect stdout from COMMAND in ADD_CUSTOM_COMMAND (CMake 2.6 RC8)

2008-04-21 Thread Eric Noulard
2008/4/21, Alejandro Morell Garcí­a <[EMAIL PROTECTED]>: > > I'm trying to convert the following script into CMake add_custom_command: > > echo #include "glib-object.h" > gstmarshal.c.tmp > echo #include "gstmarshal.h" >> gstmarshal.c.tmp > glib-genmarshal --body --prefix=gst_marsha

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-21 Thread Pau Garcia i Quiles
Quoting Horacio Sanson <[EMAIL PROTECTED]>: I can use IF(WIN32) and IF(UNIX) to set some variables depending if cmake is executed in Windows or UNIX systems. The problem is that UNIX in this context includes both Linux and FreeBSD. Has CMake a way to know if it is running in a Linux box or a Fr

[CMake] Differentiate between Linux and FreeBSD

2008-04-21 Thread Horacio Sanson
I can use IF(WIN32) and IF(UNIX) to set some variables depending if cmake is executed in Windows or UNIX systems. The problem is that UNIX in this context includes both Linux and FreeBSD. Has CMake a way to know if it is running in a Linux box or a FreeBSD box?? regards, Horacio _

Re: [CMake] CMake doesn't accept multiple entries for a variable on the commandline

2008-04-21 Thread David Cole
When you say it doesn't work, is it because you do not see the value in the cache editor or in your CMakeCache.txt file or is it because the flags are not used in the make files...? Do you have any code in any CMakeLists.txt files that manipulate the CMAKE_CXX_FLAGS variable? If you want to see t

[CMake] Different link behaviour for targets Debug and Release needed

2008-04-21 Thread f.bilz
Falko Bilz schrieb am 21.04.2008 15:05 _ Hello, How can I set specific link libraries for the two different targets 'Debug' and 'Release' ? I've tried 'TARGET_LINK_LIBRARIES ( fooexe DEBUG lib_debug )' (remark: lib_debug is n

Re: [CMake] Different link behaviour for targets Debug and Release needed

2008-04-21 Thread Timenkov Yuri
On Monday 21 April 2008 17:05:32 [EMAIL PROTECTED] wrote: > Falko Bilz schrieb am 21.04.2008 15:05 > _ > > Hello, > > > > How can I set specific link libraries for the two different targets > 'Debug' and 'Release' ? I've tried > >

Re: [CMake] CMake doesn't accept multiple entries for a variable on the commandline

2008-04-21 Thread Andreas Pakulat
On 21.04.08 08:36:48, David Cole wrote: > When you say it doesn't work, is it because you do not see the value in the > cache editor or in your CMakeCache.txt file or is it because the flags are > not used in the make files...? Both actually. > Do you have any code in any CMakeLists.txt files tha

Re: [CMake] CMake 2.4 (8) & WxWidgets + RichText Pt 2

2008-04-21 Thread Eric Torstenson
That did the trick (editing the FindwxWidgets.cmake) Thanks so much! eric Alan W. Irwin wrote: To see what is going on, check the FindwxWidgets.cmake file. For example, on my Debian testing system with CMake 2.4.8, that file is located at /usr/share/cmake-2.4/Modules/FindwxWidgets.cmake. The

Re: [CMake] CMake 2.4 (8) & WxWidgets + RichText Pt 2

2008-04-21 Thread Miguel A. Figueroa-Villanueva
On Mon, Apr 21, 2008 at 10:55 AM, Eric Torstenson wrote: > Alan W. Irwin wrote: > > To see what is going on, check the FindwxWidgets.cmake file. For example, > > on my Debian testing system with CMake 2.4.8, that file is located at > > /usr/share/cmake-2.4/Modules/FindwxWidgets.cmake. There is a

Re: [CMake] CMake 2.4 (8) & WxWidgets + RichText Pt 2

2008-04-21 Thread Eric Torstenson
Hi Miguel, Well, with this in mind, I did a bit of playing, and decided that the problem wasn't so much that FindwxWidgets.cmake needed to be changed, but instead, I was calling it incorrectly. What I had to do was as follows: SET (wxWidgets_USE_LIBS aui richtext adv html core xml base xrc q

Re: [CMake] CMake 2.4 (8) & WxWidgets + RichText Pt 2

2008-04-21 Thread Miguel A. Figueroa-Villanueva
On Mon, Apr 21, 2008 at 1:36 PM, Eric Torstenson wrote: > On Mon, Apr 21, 2008 at 12:27 PM, Miguel A. Figueroa-Villanueva wrote: > > Hello Eric, > > > > I'm glad to here this worked. Now, I would like to understand the > > problem, so that I can fix the FindwxWidgets module. Can you post > > exactl

Re: [CMake] Redirect stdout from COMMAND in ADD_CUSTOM_COMMAND (CMake 2.6 RC8)

2008-04-21 Thread Alejandro Morell Garcí­a
It's works. Thanks :) I don't agree using no VERBATIM option, but it wouldn't be the first hack in computer science, hehehe. Support of cross-platform stdout redirecting would be a great feature in future versions of cmake. Maybe implementing all options of EXECUTE_PROCESS in ADD_CUSTOM_COMMAN

Re: [CMake] ASM problem with cmake-2.6

2008-04-21 Thread Alexander Neundorf
On Friday 18 April 2008, Hendrik Sattler wrote: > Hi, > > there are two small problem with Assembler support in cmake-2.6. Both > are easily fixable: > > 1. > in Modules/CMakeDetermineASMCompiler.cmake, an IF statement does not > match its endif statement (line 33): >IF(NOT _CMAKE_USER_ASM_COMP

Re: [CMake] problem using Apache Portable Runtime (APR)

2008-04-21 Thread Alexander Neundorf
On Saturday 19 April 2008, Wakan wrote: > Alexander Neundorf ha scritto: > On Thursday 17 April 2008, Carlo Loiudice wrote: > > I'm trying to write a simple hello world program using APR. > I'm using Eclipse + Mingw + Cmake on Windows platform, but I need to > develop a cross platform application.

Re: [CMake] Differentiate between Linux and FreeBSD

2008-04-21 Thread Horacio Sanson
On Mon, Apr 21, 2008 at 7:01 PM, Pau Garcia i Quiles <[EMAIL PROTECTED]> wrote: > > Quoting Horacio Sanson <[EMAIL PROTECTED]>: > > > > I can use IF(WIN32) and IF(UNIX) to set some variables depending if > > cmake is executed in Windows or UNIX systems. The problem is that UNIX > > in this context

Re: [CMake] ASM problem with cmake-2.6

2008-04-21 Thread Hendrik Sattler
Zitat von Alexander Neundorf <[EMAIL PROTECTED]>: 2. When using gcc, the compile flag "-c" is missing when creating a .S.o object file, thus it always fails. /usr/bin/as -o /main-linux-x86-gas.s.o //Tests/Assembler/main-linux-x86-gas.s It doesn't need a -c here. Are you using gcc or as/gas as a

Re: [CMake] Redirect stdout from COMMAND in ADD_CUSTOM_COMMAND (CMake 2.6 RC8)

2008-04-21 Thread Eric Noulard
2008/4/21, Alejandro Morell Garcí­a <[EMAIL PROTECTED]>: > > It's works. Thanks :) > I don't agree using no VERBATIM option, but it wouldn't be the first hack > in computer science, hehehe. Yep looks like a bug unless I miss something. Would you please file a bug for this issue, in order to make