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. autotools

[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

[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

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

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: 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

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

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. Cygwin is

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

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 01:20:55

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

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 most

[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: [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, It's a wiki. You

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 cmake@cmake.org Betreff: [CMake] sysconfdir and localstatedir Hi, What are the equivalent of sysconfdir and localstatedir ? ./configure --prefix=/usr --sysconfdir=/etc

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 issue

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: 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 LIbrary via

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:

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
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] 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

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

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 .suo and

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

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

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 or,

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] 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

[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] 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

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

[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] 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 but

[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)

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