[CMake] --enable-* with cmake

2007-08-08 Thread gga
I'm currently using cmake for a variety of projects. Love it. However, one feature I find myself missing more and more is one from autotools configure scripts: AC_ARG_ENABLE(). That is, the ability to allow the configuration script (ie. cmake) to be run with arbitrary flags to turn on or turn off

Re: [CMake] --enable-* with cmake

2007-08-08 Thread Eric Noulard
2007/8/8, gga [EMAIL PROTECTED]: I'm currently using cmake for a variety of projects. Love it. However, one feature I find myself missing more and more is one from autotools configure scripts: AC_ARG_ENABLE(). That is, the ability to allow the configuration script (ie. cmake) to be run with

[CMake] help installing cmake

2007-08-08 Thread Alex Dantart
I follow the instructions of Install page (http://cmake.org/HTML/Install.html) and with cmake 2.4.7 downloaded and untar I run cmake . but it shows this: # cmake . -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- broken The C compiler /usr/bin/gcc

Re: [CMake] RPM CPack generator, was: How to request features?

2007-08-08 Thread Frederik Deweerdt
On Tue, Aug 07, 2007 at 07:45:07PM +0200, Eric Noulard wrote: 2007/8/7, Frederik Deweerdt [EMAIL PROTECTED]: On Mon, Aug 06, 2007 at 06:31:32PM +0200, Eric Noulard wrote: 2007/8/6, Alexander Neundorf [EMAIL PROTECTED]: 2) Those files MUST define the following variables

[CMake] How to use INSTALL( ... COMPONENT ... )?

2007-08-08 Thread Eric Noulard
Hi list, Can anybody here explain how the COMPONENT option of the INSTALL CMake MACRO works? I am able to specify COMPONENT in my INSTALL command but I don't know how to use it with unix makefile generator? [...] We (me and Frederik D.) did ask howto use the COMPONENT option of the INSTALL

Re: [CMake] help installing cmake

2007-08-08 Thread Pau Garcia i Quiles
Quoting Alex Dantart [EMAIL PROTECTED]: You need g++ to build CMake and it does not look like you have installed it: CMake Error: your CXX compiler: CMAKE_CXX_COMPILER_FULLPATH-NOTFOUND was not found in your path. For CMake to correctly use try compile commands, the compiler must be in

[CMake] ctest -- test case specific timeouts?

2007-08-08 Thread Reinhold Fuereder
Hello, According to http://www.cmake.org/pipermail/cmake/2007-January/012713.html test case specific timeouts should be supported via set_tests_properties in CMake 2.4.7. Unfortunately, this does not seem to work for me. Note that I don't want to use Dart, but just local CTest. Also, I want to

Re: [CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-08 Thread Alexander Neundorf
On Tuesday 07 August 2007 20:10, Alex Dantart wrote: Matthew Woehlke wrote: Alex Dantart wrote: Matthew Woehlke wrote: Any reason you aren't using a pre-compiled binary? where can i find a pre-compiled binary 2.4.2 for ubuntu ? I can't ! http://www.cmake.org/HTML/Download.html ??

[CMake] First time to CMake

2007-08-08 Thread Sunil Kumar Emmadi
Hello all, I have been given a task to master CMake, apart from reading and referring book titled Mastering CMake, how else I can start. wiki seems to be bit complicated, any other way??? or someone has some kind of self tutorial?? Thanks All.. ___

[CMake] Simple_Mingw_Linux2Win fails

2007-08-08 Thread Mathieu Malaterre
Looks like Simple_Mingw_Linux2Win is trying the host C++ compiler instead of the target c++ compiler for some reason. 84/ 89 Testing Simple_Mingw_Linux2Win Test command: /home/mmalaterre/Dashboards/MyTests/CMake-gcc42/bin/ctest --build-and-test

Re: [CMake] Simple_Mingw_Linux2Win fails

2007-08-08 Thread Alexander Neundorf
On Wednesday 08 August 2007 09:20, Mathieu Malaterre wrote: Looks like Simple_Mingw_Linux2Win is trying the host C++ compiler instead of the target c++ compiler for some reason. 84/ 89 Testing Simple_Mingw_Linux2Win Test command: /home/mmalaterre/Dashboards/MyTests/CMake-gcc42/bin/ctest

Re: [CMake] Simple_Mingw_Linux2Win fails

2007-08-08 Thread Mathieu Malaterre
On 8/8/07, Alexander Neundorf [EMAIL PROTECTED] wrote: On Wednesday 08 August 2007 09:20, Mathieu Malaterre wrote: Looks like Simple_Mingw_Linux2Win is trying the host C++ compiler instead of the target c++ compiler for some reason. 84/ 89 Testing Simple_Mingw_Linux2Win Test command:

Re: [CMake] Simple_Mingw_Linux2Win fails

2007-08-08 Thread Mathieu Malaterre
On 8/8/07, Mathieu Malaterre [EMAIL PROTECTED] wrote: On 8/8/07, Alexander Neundorf [EMAIL PROTECTED] wrote: On Wednesday 08 August 2007 09:20, Mathieu Malaterre wrote: Looks like Simple_Mingw_Linux2Win is trying the host C++ compiler instead of the target c++ compiler for some reason.

Re: [CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-08 Thread Philip Lowman
Alex Dantart wrote: doing exacly that was exactly the reason I wrote here... in my first email of this trhread you will see the problems doing that sudo apt-get install build-essential Should get make as well as g++. -- Philip Lowman Simulation Development Engineer, Modeling and Simulation

Re: [CMake] How to use INSTALL( ... COMPONENT ... )?

2007-08-08 Thread Christian Convey
On 8/8/07, Eric Noulard [EMAIL PROTECTED] wrote: Hi list, Can anybody here explain how the COMPONENT option of the INSTALL CMake MACRO works? I think of it as a way to give a name to different subsets of your installable files, so that you can install the subset of choice using make install.

Re: [CMake] Simple_Mingw_Linux2Win fails

2007-08-08 Thread Alexander Neundorf
On Wednesday 08 August 2007 09:33, Mathieu Malaterre wrote: On 8/8/07, Alexander Neundorf [EMAIL PROTECTED] wrote: ... Do you have the CXX environment variable set ? Nothing under CXX, but I do have a CXXFLAGS... I changed Tests/CMakeLists.txt so it should work now, now the CXX compiler is

Re: [CMake] Simple_Mingw_Linux2Win fails

2007-08-08 Thread Bill Hoffman
Mathieu Malaterre wrote: CMake will not be able to correctly generate this project. The problem is here: -Wl,--out-implib,libcmTryCompileExec.dll.a -Wl,--major-image-version,0,--minor-image-version,0 /usr/bin/ld: unrecognized option '--out-implib' /usr/bin/ld: use the --help option for

[CMake] Release Notes for 2.4.7

2007-08-08 Thread Dieter Oberkofler
Can someone help on where I could find the release notes for 2.4.7 ? Cheers, Dieter ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] --enable-* with cmake

2007-08-08 Thread Philip Lowman
Eric Noulard wrote: 2007/8/8, gga [EMAIL PROTECTED]: I'm currently using cmake for a variety of projects. Love it. However, one feature I find myself missing more and more is one from autotools configure scripts: AC_ARG_ENABLE(). That is, the ability to allow the configuration script (ie.

Fwd: [CMake] --enable-* with cmake

2007-08-08 Thread Christian Convey
On 8/8/07, Philip Lowman [EMAIL PROTECTED] wrote: Eric Noulard wrote: ... --enable-foo is much more readable than -DENABLE_FOO or -DUSE_FOO. Having implemented USE_FOO arguments for every single one of our optional dependencies and looked at them on a CMake command line I can attest to this.

Re: [CMake] --enable-* with cmake

2007-08-08 Thread Alexander Neundorf
On Wednesday 08 August 2007 10:19, Philip Lowman wrote: Eric Noulard wrote: 2007/8/8, gga [EMAIL PROTECTED]: I'm currently using cmake for a variety of projects. Love it. However, one feature I find myself missing more and more is one from autotools configure scripts: AC_ARG_ENABLE().

Re: [CMake] Simple_Mingw_Linux2Win fails: fixed

2007-08-08 Thread Mathieu Malaterre
On 8/8/07, Alexander Neundorf [EMAIL PROTECTED] wrote: On Wednesday 08 August 2007 09:33, Mathieu Malaterre wrote: On 8/8/07, Alexander Neundorf [EMAIL PROTECTED] wrote: ... Do you have the CXX environment variable set ? Nothing under CXX, but I do have a CXXFLAGS... I changed

Re: [CMake] Release Notes for 2.4.7

2007-08-08 Thread Brandon Van Every
On 8/8/07, Dieter Oberkofler [EMAIL PROTECTED] wrote: Can someone help on where I could find the release notes for 2.4.7 ? I don't know of anything specifically called release notes. There's a readme.txt at the top of the source tree, and also a ChangeLog.txt. Cheers, Brandon Van Every

Re: [CMake] How to use INSTALL( ... COMPONENT ... )?

2007-08-08 Thread David Cole
On 8/8/07, Christian Convey [EMAIL PROTECTED] wrote: Also, note that if you want to specify *at the time you run 'make install'* which component will be installed, you need to do a little trick using 'cmake -P ...'. Precisely what is the little trick? Otherwise you can only specify the

Re: [CMake] First time to CMake

2007-08-08 Thread Brandon Van Every
On 8/8/07, Sunil Kumar Emmadi [EMAIL PROTECTED] wrote: Hello all, I have been given a task to master CMake, apart from reading and referring book titled Mastering CMake, how else I can start. wiki seems to be bit complicated, any other way??? or someone has some kind of self tutorial??

Re: [CMake] Simple_Mingw_Linux2Win fails: fixed

2007-08-08 Thread Alexander Neundorf
On Wednesday 08 August 2007 10:38, Mathieu Malaterre wrote: On 8/8/07, Alexander Neundorf [EMAIL PROTECTED] wrote: On Wednesday 08 August 2007 09:33, Mathieu Malaterre wrote: On 8/8/07, Alexander Neundorf [EMAIL PROTECTED] wrote: ... Do you have the CXX environment variable set ?

Re: [CMake] --enable-* with cmake

2007-08-08 Thread Brandon Van Every
On 8/8/07, gga [EMAIL PROTECTED] wrote: I know I can pass -D symbols to cmake to modify its behavior and that windows also has its ugly CmakeSetup gui. Ugly? Geez, what are you, a candidate for Windows Aero or something? Cheers, Brandon Van Every

Re: [CMake] Release Notes for 2.4.7

2007-08-08 Thread Bill Hoffman
Brandon Van Every wrote: On 8/8/07, Dieter Oberkofler [EMAIL PROTECTED] wrote: Can someone help on where I could find the release notes for 2.4.7 ? I don't know of anything specifically called release notes. There's a readme.txt at the top of the source tree, and also a

Re: [CMake] --enable-* with cmake

2007-08-08 Thread Brandon Van Every
On 8/8/07, Philip Lowman [EMAIL PROTECTED] wrote: In defense of the original post, --enable-foo is much more readable than -DENABLE_FOO or -DUSE_FOO. No it isn't, and it's not much of a defense. Slightly more readable I'd accept. Let's refrain from religious hyperbole when contemplating

[CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-08 Thread Matthew Woehlke
Alex Dantart wrote: Matthew Woehlke wrote: Alex Dantart wrote: where can i find a pre-compiled binary 2.4.2 for ubuntu ? I can't ! http://www.cmake.org/HTML/Download.html ?? WHERE ?!?!?! no binnaries for ubuntu there !! the .sh just decompress the same that tarball :P You don't need an

Re: [CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-08 Thread Juan Sanchez
Matthew Woehlke wrote: Alex Dantart wrote: Matthew Woehlke wrote: Alex Dantart wrote: . . . Anyway, this line seems to be the important clue: /usr/bin/ld: crt1.o No hay tal fichero: No existe el fichero รณ directorio It looks almost like your compiler is not installed properly? Are you

Re: [CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-08 Thread Juan Sanchez
In addition, if it is crt1.o which is missing, it is in glibc-devel on a redhat 7.3 system. Regards, Juan Juan Sanchez wrote: Matthew Woehlke wrote: Alex Dantart wrote: Matthew Woehlke wrote: Alex Dantart wrote: . . . Anyway, this line seems to be the important clue: /usr/bin/ld:

Re: [CMake] Re: problems compilating 2.4.7 under 2.2

2007-08-08 Thread Juan Sanchez
Please see: http://felixker.com/tips-and-tricks/crt1o-no-such-file-no-such-file-or-directory/ From the article (the Fedora instructions make no sense at all): While using gcc on a newly installed system you may get: /usr/bin/ld: crt1.o: No such file: No such file or directory This is a common

Re: [CMake] --enable-* with cmake

2007-08-08 Thread Philip Lowman
Brandon Van Every wrote: On 8/8/07, Philip Lowman [EMAIL PROTECTED] wrote: I love CMake, but there have been times when I wished that --enable-foo would simply be a shortcut to set a boolean variable ENABLE_FOO to true. Some would say that's not nice because you don't get exactly what's on

Re: [CMake] --enable-* with cmake

2007-08-08 Thread Andreas Pakulat
On 08.08.07 12:46:56, Philip Lowman wrote: Brandon Van Every wrote: On 8/8/07, Philip Lowman [EMAIL PROTECTED] wrote: I love CMake, but there have been times when I wished that --enable-foo would simply be a shortcut to set a boolean variable ENABLE_FOO to true. Some would say

Re: [CMake] --enable-* with cmake

2007-08-08 Thread Alexander Neundorf
On Wednesday 08 August 2007 13:05, Andreas Pakulat wrote: On 08.08.07 12:46:56, Philip Lowman wrote: ... Actually, it's more like this: cmake -D USE_FOO=BOOL:ON . or cmake -D USE_FOO=BOOL:OFF . Not quite, the BOOL: is not needed. It depends. If you want it to go in the cache, it is

Re: [CMake] --enable-* with cmake

2007-08-08 Thread Philip Lowman
Andreas Pakulat wrote: The fact that people don't even know the proper way to define variables at the command line (myself included) should be proof positive that CMake could use some improvement when operating in command line mode. Or that people should start reading documentations ;) I

[CMake] Chossing compiler

2007-08-08 Thread Marie-Christine Vallet
Hi, I have a C mixed with Fortran and would like to be able to choose my fortran compiler depending on the c compiler eg ifort if I use icc or f77 if I use gcc. I tried this IF ( CMAKE_COMPILER_IS_GNUCC ) SET(CMAKE_Fortran_COMPILER f77) ENDIF ( CMAKE_COMPILER_IS_GNUCC ) But it does

Re: [CMake] Why not a GetCleanTargetName?

2007-08-08 Thread Alexander Neundorf
On Friday 03 August 2007 20:00, Miguel A. Figueroa-Villanueva wrote: Hello, Why isn't there the following in cmGlobalGenerator.h : virtual const char* GetCleanTargetName() { return 0; } and the following in cmGlobalUnixMakefileGenerator3.h : virtual const char*

[CMake] rebuilding technique

2007-08-08 Thread Jon W
How should a visual studio developer rebuild individual projects within the ide? It has been mentioned on the alias that one should no longer use the visual studio rebuild option as that also rebuilds the cmakelists.txt. Is the only way to rebuild source files without rebuilding cmakelists.txt

[CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Marie-Christine Vallet
Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Thanks again, Marie cmake -DCMAKE_Fortran_COMPILER:string=g77 -DCMAKE_CXX_COMPILER:string=g++ -DCMAKE_C_COMPILER:string=g++ -- Check for working CXX compiler: g++ -- Check for

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread David Cole
Try moving the quotes like this: cmake .. -DCMAKE_CXX_COMPILER:string=g++ ... On 8/8/07, Marie-Christine Vallet [EMAIL PROTECTED] wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Thanks again, Marie cmake

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Bill Hoffman
Marie-Christine Vallet wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Thanks again, Marie I suspect you want to look at LINKER_LANGUAGE. You really don't want to use g++ for a c compiler. What are you trying to do?

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Alexander Neundorf
On Wednesday 08 August 2007 15:04, Marie-Christine Vallet wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Yes. This file is used for testing: #ifndef __cplusplus # error The CMAKE_CXX_COMPILER is set to a C compiler #endif

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Marie-Christine Vallet
Bill Hoffman wrote: Marie-Christine Vallet wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Thanks again, Marie I suspect you want to look at LINKER_LANGUAGE. You really don't want to use g++ for a c compiler. What are

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Brandon Van Every
On 8/8/07, Marie-Christine Vallet [EMAIL PROTECTED] wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Dunno. But the preferred interface nowadays is to set the LANGUAGE and LINKER_LANGUAGE properties of a file.

Re: [CMake] --enable-* with cmake

2007-08-08 Thread Brandon Van Every
On 8/8/07, Philip Lowman [EMAIL PROTECTED] wrote: I don't know where -DUSE_FOO or -D USE_FOO came from, it doesn't appear to be legal in 2.4.6. Oops. Guess I haven't done enough of these to remember how I did them. The fact that people don't even know the proper way to define variables at

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Bill Hoffman
Marie-Christine Vallet wrote: Bill Hoffman wrote: Marie-Christine Vallet wrote: Hi, I would like to use g++ as my c compiler (which works) but cmake does not let me do that. Is this normal? Thanks again, Marie I suspect you want to look at LINKER_LANGUAGE. You really don't want to use g++

Re: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Alan W. Irwin
On 2007-08-08 21:52-0400 Bill Hoffman wrote: one of the c files includes a c++ file that is why I need to compile my c files with g++ and not gcc. One of the solution would be to rename my c file cpp or cxx thanks, Marie You can also set the language for that .c file to CXX.

RE: [CMake] -DCMAKE_C_COMPILER:string=g++

2007-08-08 Thread Sanchez, Juan
Note that many C/C++ compilers rely on the file extension to determine whether it should be processed using C or C++. I tested this a file with a simple function and with the following extensions on linux 32 bit and looked at the symbols using nm. For gcc -c .c unmangled .C mangled .cc