Re: [CMake] Adding cross-compiler support to CMake ...

2006-09-07 Thread Michael Casadevall
I've been working on determining on how to do the platform part of this. My first guess is we could do something like this in the platform files:(from gcc.cmake)IF(CMAKE_COMPILER_IS_GNUCC)  SET (CMAKE_C_FLAGS_INIT "")  SET (CMAKE_C_FLAGS_DEBUG_INIT "-g")  SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-Os -DN

Re: [Chicken-users] Re: [CMake] setting a default build type

2006-09-07 Thread Brandon J. Van Every
felix winkelmann wrote: On 9/7/06, Brandon J. Van Every <[EMAIL PROTECTED]> wrote: On MSVC my CMakeLists.txt generates Debug, Release, MinSizeRel, and RelWithDebInfo build types. I want to keep all 4 of 'em. I want to select MinSizeRel as the default build, so that if an end user just fires up

[CMake] qt4 with cmake's question

2006-09-07 Thread 孙高勇
i succeed use cmake to build a qt4's example's imageviewer in windows,build with mingw32.the programe run with a console with cmake build ,if use qmake,the programe run without  console,why?and how to forbid to show console with cmake? this is my cmakelist.txtproject(imageviewer) cmake_minimum_requ

Re: [CMake] setting a list using the -D option

2006-09-07 Thread Alan W. Irwin
On 2006-09-07 21:44-0400 Darby J Van Uitert wrote: Hello, How do I set the value of a list using the -D option when running cmake? For example, if I want FOO to be a list containing the letters a, b, and c, I thought I would do something like cmake ../src -DFOO:STRING="a b c" I tried this bu

[CMake] setting a list using the -D option

2006-09-07 Thread Darby J Van Uitert
Hello, How do I set the value of a list using the -D option when running cmake? For example, if I want FOO to be a list containing the letters a, b, and c, I thought I would do something like >cmake ../src -DFOO:STRING="a b c" I tried this but then it just treats it as a string and my foreach

Re: [CMake] Adding cross-compiler support to CMake ...

2006-09-07 Thread William A. Hoffman
At 06:42 PM 9/7/2006, Michael Casadevall wrote: >1. Never seen that. autotools should only enter cross-compiling mode >if --host is set, and its different the current platform, or if both >build and host are set with different values. If you look in a configure script.. rm -f a.out a.exe conft

Re: [CMake] See libraries

2006-09-07 Thread Mathieu Malaterre
Gheorghe Postelnicu wrote: Hi, How can I display the libraries actually used during a given link process? I have to use some VTK libraries (which link just fine with CMake) using a manual makefile and I really need to see all the libraries. I believe you are looking for: $ make VERBOSE=1

Re: [CMake] See libraries

2006-09-07 Thread Alan W. Irwin
On 2006-09-07 17:56-0400 Gheorghe Postelnicu wrote: Hi, How can I display the libraries actually used during a given link process? I have to use some VTK libraries (which link just fine with CMake) using a manual makefile and I really need to see all the libraries. Set CMAKE_VERBOSE_MAKE

Re: [CMake] Adding cross-compiler support to CMake ...

2006-09-07 Thread Michael Casadevall
1. Never seen that. autotools should only enter cross-compiling mode if --host is set, and its different the current platform, or if both build and host are set with different values. 2. In an earlier email which got disconnected from this one stated there would be a configuration question

[CMake] See libraries

2006-09-07 Thread Gheorghe Postelnicu
Hi, How can I display the libraries actually used during a given link process? I have to use some VTK libraries (which link just fine with CMake) using a manual makefile and I really need to see all the libraries. Thanks, -- Gheorghe Postelnicu, PhD MGH, Harvard Medical School _

Re: [CMake] Adding cross-compiler support to CMake ...

2006-09-07 Thread Michael Casadevall
Begin forwarded message:From: Michael Casadevall <[EMAIL PROTECTED]>Date: September 7, 2006 5:38:14 PM EDTTo: "William A. Hoffman" <[EMAIL PROTECTED]>Subject: Re: [CMake] Adding cross-compiler support to CMake ... I would disagree with that. Your using a cross-compiler, but CMake doesn't know its c

Re: [CMake] Adding cross-compiler support to CMake ...

2006-09-07 Thread William A. Hoffman
At 04:36 PM 9/7/2006, Brad King wrote: >Michael Casadevall wrote: >> I wish to add support for cross-compiling to CMake since its a tool I >> use a lot, and I can finally kill the last few of my projects using >> autotools. To my knowledge, autotools is the only system that provides >> cross-compil

Re: [CMake] Adding cross-compiler support to CMake ...

2006-09-07 Thread Brad King
Michael Casadevall wrote: > I wish to add support for cross-compiling to CMake since its a tool I > use a lot, and I can finally kill the last few of my projects using > autotools. To my knowledge, autotools is the only system that provides > cross-compiling, and poorly at that, and I've been think

Re: [CMake] How to read a registry key?

2006-09-07 Thread Anton Deguet
I looks like this has something to do with the nature of the key/value. For values listed as REG_SZ (within regedit.exe), CMake can retrieve the content but for values stored as REG_EXPAND_SZ I systematically get "/registry". I don't know much about the Windows registry but I did a quick survey of

Re: [CMake] Mailing lists for cvs and bugtracker

2006-09-07 Thread Brad King
Joerg Mayer wrote: > I'd like to follow development of cmake a bit more closely. In order to > do that, many other open source projects have mailing lists that follow > the cvs commit and the bug tracking system. > Is something like that available and just not mentioned on the mailing > lists page

Re: [CMake] setting a default build type

2006-09-07 Thread David Cole
Given a very basic HelloWorld application in Visual Studio, there is only one way that I have found to force it to choose something other than "Debug" by default: eliminate the "Debug" configuration. In the very basic case (generated by Visual Studio wizard) there are only two configurations:

Re: [CMake] setting a default build type

2006-09-07 Thread Brandon J. Van Every
Alan W. Irwin wrote: On 2006-09-07 09:35-0700 Brandon J. Van Every wrote: Alan W. Irwin wrote: On 2006-09-07 00:56-0700 Brandon J. Van Every wrote: On MSVC my CMakeLists.txt generates Debug, Release, MinSizeRel, and RelWithDebInfo build types. I want to keep all 4 of 'em. I want to select

Re: [CMake] setting a default build type

2006-09-07 Thread Brandon J. Van Every
Brad King wrote: Brandon J. Van Every wrote: Brad King wrote: This would be a nice feature but I don't know how to implement it. Try generating a project and then manually editing the project files in such a way that the IDE selects a different configuration by def

Re: [CMake] setting a default build type

2006-09-07 Thread Alan W. Irwin
On 2006-09-07 09:35-0700 Brandon J. Van Every wrote: Alan W. Irwin wrote: On 2006-09-07 00:56-0700 Brandon J. Van Every wrote: On MSVC my CMakeLists.txt generates Debug, Release, MinSizeRel, and RelWithDebInfo build types. I want to keep all 4 of 'em. I want to select MinSizeRel as the def

Re: [CMake] setting a default build type

2006-09-07 Thread Brad King
Brandon J. Van Every wrote: > Brad King wrote: >> This would be a nice feature but I don't know how to implement it. Try >> generating a project and then manually editing the project files in such >> a way that the IDE selects a different configuration by default. Don't >> forget to remove the .s

Re: [CMake] setting a default build type

2006-09-07 Thread Brandon J. Van Every
Brad King wrote: Brandon J. Van Every wrote: On MSVC my CMakeLists.txt generates Debug, Release, MinSizeRel, and RelWithDebInfo build types. I want to keep all 4 of 'em. I want to select MinSizeRel as the default build, so that if an end user just fires up BUILD_ALL and does noth

Re: [CMake] Adding cross-compiler support to CMake ...

2006-09-07 Thread Brandon J. Van Every
Sean McBride wrote: On 2006-09-06 14:26, Brandon J. Van Every said: However, the whole idea of TRY_COMPILE is of course incompatible with this, since the minute you assume that the machine doing the building is the same type as the machine you are building for, you are in t

Re: [CMake] make install not works for me

2006-09-07 Thread Brandon J. Van Every
Alexander Neundorf wrote: Von: "Brandon J. Van Every" <[EMAIL PROTECTED]> Slava Semushin wrote: I think anybody should update http://www.cmake.org/HTML/Examples.html and adds INSTALL directives to example. Without this ch

Re: [CMake] setting a default build type

2006-09-07 Thread Brandon J. Van Every
Alan W. Irwin wrote: On 2006-09-07 00:56-0700 Brandon J. Van Every wrote: On MSVC my CMakeLists.txt generates Debug, Release, MinSizeRel, and RelWithDebInfo build types. I want to keep all 4 of 'em. I want to select MinSizeRel as the default build, so that if an end user just fires up BUILD

Re: [CMake] How to read a registry key?

2006-09-07 Thread Anton Deguet
Bill, I had some success with the key expansion but I haven't been able to do what I need. Basically, I would like to get the un-expanded content of the user path, i.e. not the expanded path (user and system) which can be found using $ENV{PATH}. I tried the following code, i.e. adding two variab

Re: [CMake] setting a default build type

2006-09-07 Thread Jan Woetzel
Alan W. Irwin wrote: Its a cached variable. So I think what you want is SET (CMAKE_BUILD_TYPE MinSizeRel CACHE STRING "Flags used by the compiler No, Cmake (at least 2.4.2) is not generating any ".suo" file at all. Thus neither CMAKE_BUILD_TYPE nor CMAKE_CONFIGURATION_TYPES will help with

Re: [CMake] sysconfdir and localstatedir

2006-09-07 Thread Alan W. Irwin
On 2006-09-07 12:41+0200 frederic heem wrote: Hi, What are the equivalent of sysconfdir and localstatedir ? ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var would be cmake -DCMAKE_INSTALL_PREFIX=/usr -D???=/etc --D???=/var Thanks, There was a recent thread about emulation of

Re: [CMake] setting a default build type

2006-09-07 Thread Alan W. Irwin
On 2006-09-07 00:56-0700 Brandon J. Van Every wrote: On MSVC my CMakeLists.txt generates Debug, Release, MinSizeRel, and RelWithDebInfo build types. I want to keep all 4 of 'em. I want to select MinSizeRel as the default build, so that if an end user just fires up BUILD_ALL and does nothing

Re: [CMake] setting a default build type

2006-09-07 Thread Jan Woetzel
Brandon J. Van Every wrote: So, is there a mechanism to specify the default build type? I think the .suo file stores this information which is not generated by CMake, actually. For now (as a workaround) you may want to add a batchfile to select a configuration with devenv command line pa

Re: [CMake] setting a default build type

2006-09-07 Thread Brad King
Brandon J. Van Every wrote: > On MSVC my CMakeLists.txt generates Debug, Release, MinSizeRel, and > RelWithDebInfo build types. I want to keep all 4 of 'em. I want to > select MinSizeRel as the default build, so that if an end user just > fires up BUILD_ALL and does nothing else, he'll get a MinS

Re: [CMake] INCLUDE_DIRECTORIES includes two directories appended together

2006-09-07 Thread Brad King
Ryan Phillips wrote: > I am having a problem when I include INCLUDE_DIRECTORIES(${SOMEVAR}) > within my project. The generated CFLAGS (under linux) include my > CMAKE_SOURCE_DIR appended with my ${SOMEVAR}, ie: > > SOMEVAR="/usr/include/openssl/" > > upon compilation: > -I/home/rphillips/work/pr

Re: AW: Re: [CMake] Linking Problems w. CMake 2.4 and MinGW32

2006-09-07 Thread Brad King
[EMAIL PROTECTED] wrote: >> ADD_EXECUTABLE(foo foo.cxx) >> TARGET_LINK_LIBRARIES(foo bar.lib) >> >> and I got a "-lbar" on the link line from CMake 2.4.3 with the "MSYS >> Makefiles" and "MinGW Makefiles" generators. > > This example works for me, too. Maybe there's some issue on setting the > LI

Re: [CMake] ADD_SUBDIRECTORY and EXCLUDE_FROM_ALL

2006-09-07 Thread Brad King
Stephan Tolksdorf wrote: > If a subdirectory is included with EXCLUDE_FROM_ALL, targets in the > subdirectory are listed in the generated Visual Studio solution, but > targets recursively included in subdirectories of the subdirectory are > not. Is this a bug or a feature? (I'm using CMake from CVS

Re: [CMake] Adding cross-compiler support to CMake ...

2006-09-07 Thread Brad King
Sean McBride wrote: > I'd just like to mention that the Mac community would dearly love to see > cross-compilation support in cmake. > > Are you familiar with Apple's concept of a "Universal Binary": > CMake 2.4 does support universal binaries on OS

Re: [CMake] Patch to install dlls correctly when cross-compiling

2006-09-07 Thread Brad King
Toni Timonen wrote: > When cross-compiling windows dlls with mingw compiler using linux, the > dlls are not installed to the correct location (and the import library > is not installed at all). It seems that some things about the platform > are fixed at runtime. > > The patch attached fixes this i

Re: [CMake] sysconfdir and localstatedir

2006-09-07 Thread Alexander Neundorf
Original-Nachricht Datum: Thu, 7 Sep 2006 12:41:39 +0200 Von: frederic heem <[EMAIL PROTECTED]> An: cmake Betreff: [CMake] sysconfdir and localstatedir > Hi, > What are the equivalent of sysconfdir and localstatedir ? > > ./configure --prefix=/usr --sysconfdir=/etc --localsta

Re: [CMake] make install not works for me

2006-09-07 Thread Alexander Neundorf
Von: "Brandon J. Van Every" <[EMAIL PROTECTED]> > Slava Semushin wrote: > > I think anybody should update > > http://www.cmake.org/HTML/Examples.html and adds INSTALL directives > to > > example. Without this change some newbies, like me, may puzzle. > > > > I was about to say, "I

Re: [CMake] Adding cross-compiler support to CMake ...

2006-09-07 Thread Sean McBride
On 2006-09-06 14:26, Brandon J. Van Every said: >> However, the whole idea of TRY_COMPILE is of course incompatible with >> this, since the minute you assume that the machine doing the building is >> the same type as the machine you are building for, you are in trouble... > >Actually it's not inva

[CMake] sysconfdir and localstatedir

2006-09-07 Thread frederic heem
Hi, What are the equivalent of sysconfdir and localstatedir ? ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var would be cmake -DCMAKE_INSTALL_PREFIX=/usr -D???=/etc --D???=/var Thanks, __ --- NOTICE --

Re: Fwd: [CMake] Adding cross-compiler support to CMake ... (fwd)

2006-09-07 Thread Arjen Markus
> Only Unix people think that "end users" run ./configure scripts or > CMake. In the Windows world, if you're running a compiler, you're a > developer. You may be a developer who wants a painless build, but > you're still a developer. The answer for an end user is CPack, not > CMake. Even for

Re: Fwd: [CMake] Adding cross-compiler support to CMake ... (fwd)

2006-09-07 Thread Brandon J. Van Every
Arjen Markus wrote: Arjen Markus wrote: Don't forget all those PCs with Windows installed but no Cygwin or MingW: they simply can not use the configure scripts. Of course, one can require these users to install Cygwin or MingW, but what is that different from

Re: [CMake] make install not works for me

2006-09-07 Thread Filipe Sousa
Slava Semushin wrote: > --- Filipe Sousa 2006-09-07 09:17:00 +0100 > +++ Slava Semushin 2006-09-07 15:31:28 +0700 > > FS> I can't tell you what you have to fix without your CMakeLists.txt > > Wow. I'm very sorry. I forgot attach CMakeLists.txt :-( > > > --- Brandon J. Van Every 2006-09-07 0

Re: [CMake] make install not works for me

2006-09-07 Thread Brandon J. Van Every
Slava Semushin wrote: I think anybody should update http://www.cmake.org/HTML/Examples.html and adds INSTALL directives to example. Without this change some newbies, like me, may puzzle. I was about to say, "It's a wiki. You could do that." But then I saw it's not a wiki, so y

Re: Fwd: [CMake] Adding cross-compiler support to CMake ... (fwd)

2006-09-07 Thread Arjen Markus
> Arjen Markus wrote: >> Don't forget all those PCs with Windows installed but no Cygwin or >> MingW: they simply can not use the configure scripts. Of course, one >> can require these users to install Cygwin or MingW, but what is that >> different from installing CMake? >> > > The level of pain.

Re: [CMake] make install not works for me

2006-09-07 Thread Slava Semushin
--- Filipe Sousa 2006-09-07 09:17:00 +0100 +++ Slava Semushin 2006-09-07 15:31:28 +0700 FS> I can't tell you what you have to fix without your CMakeLists.txt Wow. I'm very sorry. I forgot attach CMakeLists.txt :-( --- Brandon J. Van Every 2006-09-07 01:20:55 -0700 +++ Slava Semushin 2006-0

Re: Fwd: [CMake] Adding cross-compiler support to CMake ... (fwd)

2006-09-07 Thread Brandon J. Van Every
Arjen Markus wrote: Michael Casadevall wrote: My intent here is not to start a flamewar between autotools and cmake, In some cases, autotools is the proper tool vs cmake due to cross-compiling (which will hopefully fixed) and the fact that you need the cmake exe

Re: [CMake] make install not works for me

2006-09-07 Thread Brandon J. Van Every
Slava Semushin wrote: What I should fix in my CMakeLists.txt? Um, you didn't send us this, so how could we tell you? And why documents WritingCMakeLists.html and Examples.html not mentioned about installation and related variables/rules? Because we're slack. We all have way too

Re: [CMake] make install not works for me

2006-09-07 Thread Filipe Sousa
Slava Semushin wrote: > So I have questions for you: where my fault ? What I should fix in my > CMakeLists.txt? And why documents WritingCMakeLists.html and I can't tell you what you have to fix without your CMakeLists.txt -- Filipe Sousa signature.asc Description: OpenPGP digital si

[CMake] make install not works for me

2006-09-07 Thread Slava Semushin
Hello! I'm newbie in cmake. I'm trying use his for my small project which consist from 3 files which produce one executable file after compilation. I have cmake version 2.4-patch 3 on my Linux box. I was read two articles at the site (http://www.cmake.org/HTML/Writin

[CMake] setting a default build type

2006-09-07 Thread Brandon J. Van Every
On MSVC my CMakeLists.txt generates Debug, Release, MinSizeRel, and RelWithDebInfo build types. I want to keep all 4 of 'em. I want to select MinSizeRel as the default build, so that if an end user just fires up BUILD_ALL and does nothing else, he'll get a MinSizeRel build. The default defau

Re: Fwd: [CMake] Adding cross-compiler support to CMake ... (fwd)

2006-09-07 Thread Arjen Markus
> Michael Casadevall wrote: >>> >>> My intent here is not to start a flamewar between autotools and >>> cmake, In some cases, autotools is the proper tool vs cmake due to >>> cross-compiling (which will hopefully fixed) and the fact that you >>> need the cmake executable to build any CMake package.