[CMake] Where to find consistent documentation about CMake ?

2006-07-05 Thread Sagnes, Frederic
Hello, I'm getting used to CMake to build a cross platform project on Windows and Linux, and it really seems to be quite powerful. But the documentation provided on the website is really minimalist, rough (no topics, no real examples ...) and incomplete (no summary of all internal variables

Re: [CMake] Where to find consistent documentation about CMake ?

2006-07-05 Thread Brandon J. Van Every
Sagnes, Frederic wrote: We could buy the book, but I'm working in a corporate environment and it would take weeks until I get it. I doubt that. Use your own credit card, use your manager's credit card, get reimbursed later. This may sound cheeky of me, but as a self-employed person, I

Re: [CMake] Where to find consistent documentation about CMake ?

2006-07-05 Thread Alexander Neundorf
Hi, Am Mittwoch 05 Juli 2006 09:01 schrieb Sagnes, Frederic: Hello, I'm getting used to CMake to build a cross platform project on Windows and Linux, and it really seems to be quite powerful. But the documentation provided on the website is really minimalist, rough (no topics, no real

[CMake] WXDialog using UNICODE wx build again and unicode in CMake?

2006-07-05 Thread Jan Woetzel
Hi, I am running into troubles compiling WXDialog against a WX compiled as UNICODE build. Using - CMake CVS from yesterday, - wx UNICODE build on Linux (because the defalt Suse 10.1 supplied binary rpms are build with unicode) - wx non-Unicode "ansi" on Windows makes no problem

AW: [CMake] Where to find consistent documentation about CMake ?

2006-07-05 Thread Sagnes, Frederic
Hello Alex, thank you for your quick answer! The message command works great, as well as the compiler flags settings. No idea about the static libraries? The product we are building should be standalone, even in a Unix environment. Considering the release/debug profile on Unix, the problem is

AW: [CMake] Where to find consistent documentation about CMake ?

2006-07-05 Thread Sagnes, Frederic
[Sorry if this message appears twice, I was not sure about the address] Hello Alex, thank you for your quick answer! The message command works great, as well as the compiler flags settings. No idea about the static libraries? The product we are building should be standalone, even in a Unix

Re: AW: [CMake] Where to find consistent documentation about CMake ?

2006-07-05 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sagnes, Frederic wrote: Hello Alex, thank you for your quick answer! The message command works great, as well as the compiler flags settings. No idea about the static libraries? The product we are building should be standalone, even in a Unix

Re: [CMake] canonical way to distinguish CMake builds?

2006-07-05 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brandon J. Van Every wrote: I have put ADD_DEFINITIONS(-DCMAKE_BUILD) in CMakeLists.txt and statements such as #if !defined(CMAKE_BUILD) in my .h files. Is there a canonical definition for this? I didn't see any canonical flag being passed to

Re: [CMake] Made a new generator

2006-07-05 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Carlos Garces wrote: Hi! I'm a Visual Basic programmer (yes Visual Basic) with a lot of free time. VB file can be made with a command line (and can be linked with VC 2003 toolkit, but not it's important) It's possible to make a new generator

Re: [CMake] Copying a data directory

2006-07-05 Thread Filipe Sousa
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve Johns wrote: Can someone suggest a good way to copy a data directory from the source tree to the build tree? If you really need to copy a directory use ${CMAKE_COMMAND} -E copy_directory with ADD_CUSTOM_COMMAND() or EXECUTE_PROCESS() [EMAIL

Re: [CMake] WXDialog using UNICODE wx build again and unicode in CMake?

2006-07-05 Thread Jorgen Bodde
Hi Jan, Thanks! I recently contacted Brad about what the progress will be to make it work. The unicode issue is probably not applied because I did not work on it for quite a while. I had other things to do, and the need for it did not really exist back then. But now that we have a fresh user

[CMake] Per-target compiler flags?

2006-07-05 Thread Remi Denis-Courmont
Hello, I am trying to port a project to CMake, but I couldn't find anyway to specify C preprocessor defines on a per-target (or alternatively, per-source) basis. The project is compiling the same source files multiple times with different defines, resulting in different object code... But it

Re: [CMake] Per-target compiler flags?

2006-07-05 Thread Jan Woetzel
Remi Denis-Courmont wrote: The project is compiling the same source files multiple times with different defines, resulting in different object code... But it seems like ADD_DEFINITIONS won't support this case. Any solution? You may write multiple .cpp files that #include the code. Then

[CMake] Name of output file

2006-07-05 Thread Christian Lang
Hello, we want to use cmake in addition to make, as an alternative possibilty to build our software. We have a hand-written Makefile and want cmake not to overwrite it. How can we change the name of the Output- Makefile of cmake, for instance from Makefile to CMakefile? Thanks, Christian Lang

Re: [CMake] Name of output file

2006-07-05 Thread Jan Woetzel
Filipe Sousa wrote: two alternatives: 1) rename your hand-written makefile to something else and use make -f 2) replace you makefile with CMakeLists.txt and use cmake. or (3) use out-of source builds. Jan. -- Dipl.-Ing. Jan Woetzel --

[CMake] Scripting of ctest: pb with update stage and CVSCOMMAND

2006-07-05 Thread Eric BOIX
-lyon.fr Build name: Debian-GCC_3.2.5-Batch-MMA-Docs Create new tag: 20060705-1247 - Continuous Start processing tests Updating the repository Updating the repository: /home/eboix/DashboardDiet/cvs/GRAAL/devel/diet/diet Use CVS repository type

Re: [CMake] Per-target compiler flags?

2006-07-05 Thread Brad King
Remi Denis-Courmont wrote: Hello, I am trying to port a project to CMake, but I couldn't find anyway to specify C preprocessor defines on a per-target (or alternatively, per-source) basis. The project is compiling the same source files multiple times with different defines, resulting in

Re: [CMake] canonical way to distinguish CMake builds?

2006-07-05 Thread Brad King
Brandon J. Van Every wrote: I have put ADD_DEFINITIONS(-DCMAKE_BUILD) in CMakeLists.txt and statements such as #if !defined(CMAKE_BUILD) in my .h files. Is there a canonical definition for this? I didn't see any canonical flag being passed to the C compiler, so I'm guessing there isn't one,

Re: [CMake] question about linker flags from PKGCONFIG

2006-07-05 Thread Brad King
Andriy Rysin wrote: Hi I've got a question about PKGCONFIG usage Let's say I've got SOMELIB_CFLAGS and SOMELIB_LD_FLAGS from PKGCONFIG by this: PKGCONFIG(somelib SOMELIB_INCLUDE_DIR SOMELIB_LINK_DIR SOMELIB_LD_FLAGS SOMELIB_CFLAGS) I could use SET(CMAKE_CXX_FLAGS ${SOMELIB_CFLAGS}

Re: [CMake] Bug #3218 - Automatic Visual Studio dependency generation

2006-07-05 Thread Brad King
Manuel Klimek wrote: Hi there, Here's a got a completely reworked version of my patch. For me this is a killer feature when working with Visual Studio 2005 and cmake: It automatically generates workspaces for projects in subdirectories that contain all required visual studio projects to compile

Re: [CMake] CMake and VC-80 configurations

2006-07-05 Thread Brad King
Alex Makarenko wrote: High all, I'm struggling with build configurations in VC-80. I have two specific questions: 1) Does ${OutDir} get resolved for arbitrary paths (other than to targets)? E.g. I want to specify the path to a text config file generated during the build. The cmake command and

Re: [CMake] Per-target compiler flags?

2006-07-05 Thread Brandon J. Van Every
Jan Woetzel wrote: Remi Denis-Courmont wrote: The project is compiling the same source files multiple times with different defines, resulting in different object code... But it seems like ADD_DEFINITIONS won't support this case. Any solution? You may write multiple .cpp files that

[CMake] Can't force compiler to g++/gcc when compiling PV

2006-07-05 Thread Peter J. Bismuti
I'm following this ste: env CXX=/your/C++/compiler CC=/your/c/compiler ccmake . And in ccmake I'm setting the compiler path, but after I configure, it keeps overwriting it with different compilers. How can I force ccmake to take the compilers that I want? Thanks in advnace

Re: [CMake] Can't force compiler to g++/gcc when compiling PV

2006-07-05 Thread Bill Hoffman
Remove CMakeCache.txt and try again. At 02:46 PM 7/5/2006, Peter J. Bismuti wrote: I'm following this ste: env CXX=/your/C++/compiler CC=/your/c/compiler ccmake . And in ccmake I'm setting the compiler path, but after I configure, it keeps overwriting it with different compilers. How

[CMake] Fortran bug? Use statement problems

2006-07-05 Thread Daniel Sands
I'm not a Fortran programmer, but I have some code to compile into my program. It came up with false dependencies when I tried to compile it in the CMAKE framework though. The problem is traced to comment lines such as C use cross product of vectors ... Should a 'use' statement be