[CMake] configure.h.cmake generation??

2008-05-14 Thread hsanson
I am following the instructions in this page to check for some header files and fucntions http://www.cmake.org/Wiki/CMake_HowToDoPlatformChecks; but so far it is not clear, at least to me, how the configure.h.cmake file mentioned is created. If I have to create it manually it beats the utility

[CMake] Interference between MSVC and g95

2008-05-14 Thread Arjen Markus
Hello, while testing the PLplot configuration and build system using CMake 2.6 I stumbled upon a strange interference between MS Visual C/C++ and g95. Here is a description of my platform: - Windows XP - MS Visual C/C++ 6.0 - g95, installed under MinGW The following CMakeLists.txt file

Re: [CMake] Reading settings from generated files

2008-05-14 Thread Eric Noulard
2008/5/13 Andrea Gualano [EMAIL PROTECTED]: Hello Eric, The custom command is something like this (I have removed all other parameters for simplicity): ADD_CUSTOM_COMMAND ( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/compiler.opt COMMAND xs ${CMAKE_CURRENT_SOURCE_DIR}/project.cfg

Re: [CMake] configure.h.cmake generation??

2008-05-14 Thread Maik Beckmann
Am Mittwoch 14 Mai 2008 08:12:32 schrieb hsanson: I am following the instructions in this page to check for some header files and fucntions http://www.cmake.org/Wiki/CMake_HowToDoPlatformChecks; but so far it is not clear, at least to me, how the configure.h.cmake file mentioned is created.

[CMake] Symbian support?

2008-05-14 Thread Vikranth Gaddam
Hi I have seen people asking questions related to cmake support for symbian builds. I would like to know if this is supported or any plans to support this :) Thanks,Vikranth Gaddam _ Timely update on all current affairs, sports,

Re: [CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-14 Thread Eric Noulard
I all, I don't want to waste too much of our time on this since I don't think it is a must really have feature but I want to comment a little more. 2008/5/13 Bill Hoffman [EMAIL PROTECTED]: Alexander Neundorf wrote: We have projects that use it for non-cmake parts of the build. I don't want

Re: [CMake] CMake-2.6 CMAKE_TOOLCHAIN_FILE

2008-05-14 Thread Andreas Pokorny
Hi, Thank you for all these hints. Are details like that described in the Mastering CMake book? I tracked it down to: CMakeDetermineCCompiler.cmake: line 97: IF (NOT _CMAKE_TOOLCHAIN_PREFIX) GET_FILENAME_COMPONENT(COMPILER_BASENAME ${CMAKE_C_COMPILER} NAME_WE) MESSAGE(STATUS CMAKE_C_COMPILER:

Re: [CMake] exporting variables upwards

2008-05-14 Thread Phil Pellouchoud
One other way is to shove the variable into an environment variable. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Alexander Neundorf Sent: Monday, May 12, 2008 1:57 AM To: cmake@cmake.org Subject: Re: [CMake] exporting variables upwards On Monday 12

Re: [CMake] Cmake broken on ARM

2008-05-14 Thread Pierre Habouzit
On Tue, May 13, 2008 at 01:59:13PM +, Brad King wrote: Pierre Habouzit wrote: The last cmake version broke on arm because of cmsys/CPU.h that don't know about this architecture. What is the error message you get? The target CPU architecture is not known. ? Yes. Prior

[CMake] CPack: Adding external DLLs to installer package

2008-05-14 Thread Matthias Riechmann
Hi folks, is there any well defined way to include external DLL files (Qt, VTK, ITK, ...) into the installer? I guess it will work somehow using the INSTALL(FILES ...) command but currently I have no idea how to find those files automatically or how to compose a command like I want all the

Re: [CMake] Why CPack does not _ALWAYS_ use DESTDIR?

2008-05-14 Thread Bill Hoffman
Eric Noulard wrote: I all, I don't want to waste too much of our time on this since I don't think it is a must really have feature but I want to comment a little more. So, the project I was concerned about is a CMake project, but does some funny stuff with install script I think. Anyway I

Re: [CMake] Cmake broken on ARM

2008-05-14 Thread Brad King
Pierre Habouzit wrote: On Tue, May 13, 2008 at 01:59:13PM +, Brad King wrote: Pierre Habouzit wrote: The last cmake version broke on arm because of cmsys/CPU.h that don't know about this architecture. What is the error message you get? The target CPU architecture is not known. ?

[CMake] Executable extension (MSVC)

2008-05-14 Thread PCJohn
Dear cmakers, I really need to set executable extension to .com instead to standard .exe (using MSVC). Is it possible to do that, or do I need to not use cmake for win32 platform? Reasons: I planned to port InventorTools utilities

Re: [CMake] Custom-Targets with unknown outputs

2008-05-14 Thread Alan W. Irwin
Hi Christoph: I am going to put this back on the list because others may have better insight than I do. On 2008-05-14 07:05+0200 Christoph Cullmann wrote: Still, how can I at all include the generated sources into my build? I don't want to use the makefiles generated but better convert them

Re: [CMake] Custom-Targets with unknown outputs

2008-05-14 Thread Clinton Stimpson
Would it work to use ctest in a custom comand to build the generated source files? I'm thinking something similar to how the VTK Examples directory is built as a separate project. Clint Alan W. Irwin wrote: Hi Christoph: I am going to put this back on the list because others may have

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread Alan W. Irwin
On 2008-05-14 15:20+0200 PCJohn wrote: Dear cmakers, I really need to set executable extension to .com instead to standard .exe (using MSVC). Is it possible to do that, or do I need to not use cmake for win32 platform? Look at the SUFFIX property for SET_TARGET_PROPERTIES. Alan

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread Bill Hoffman
PCJohn wrote: Dear cmakers, I really need to set executable extension to .com instead to standard .exe (using MSVC). Is it possible to do that, or do I need to not use cmake for win32 platform? Reasons: I planned to port InventorTools utilities

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread John Drescher
What are the flags used in MSVC to create a .com file? I assume you need a very old version of msvc to support 16 bit compiles. Microsoft compilers have not supported this since version 4.X I believe which was more than 10 years ago. John ___ CMake

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread John Drescher
On Wed, May 14, 2008 at 9:20 AM, PCJohn [EMAIL PROTECTED] wrote: Dear cmakers, I really need to set executable extension to .com instead to standard .exe (using MSVC). Is it possible to do that, or do I need to not use cmake for win32 platform? Reasons: I planned to port InventorTools

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread David Cole
No flags, just name the output file .com instead of .exe... Still works with present day Visual Studio... On Wed, May 14, 2008 at 1:00 PM, John Drescher [EMAIL PROTECTED] wrote: What are the flags used in MSVC to create a .com file? I assume you need a very old version of msvc to support

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread Bill Hoffman
John Drescher wrote: What are the flags used in MSVC to create a .com file? I assume you need a very old version of msvc to support 16 bit compiles. Microsoft compilers have not supported this since version 4.X I believe which was more than 10 years ago. I don't know about that.

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread clinton
On Wednesday 14 May 2008 11:05:43 am David Cole wrote: No flags, just name the output file .com instead of .exe... Right. Still works with present day Visual Studio... Even Visual Studio has a tiny devenv.com which probably calls devenv.exe and keeps it attached to the console to see

Re: [CMake] Executable extension (MSVC)

2008-05-14 Thread John Drescher
I know for a fact that this is not correct. I have written my own single windows applications that have a gui and a console and it is a .exe. Link the gui application with subsystem console. Ok. I found what I do. I have a post build step (in a vc6 project .dsp) that changes the subsystem

[CMake] DEFINE_SYMBOL and static libs

2008-05-14 Thread Christian Ehrlicher
Hi, is there a rationale behind the fact that DEFINE_SYMBOL for static libs is ignored? I do understand that (the automatic) MAKE_foo_LIB is not needed here but I don't see a reason why to ignore a user-defined value. The problem is that I want to compile a lib in static and shared mode and

Re: [CMake] DEFINE_SYMBOL and static libs

2008-05-14 Thread Bill Hoffman
Christian Ehrlicher wrote: Hi, is there a rationale behind the fact that DEFINE_SYMBOL for static libs is ignored? I do understand that (the automatic) MAKE_foo_LIB is not needed here but I don't see a reason why to ignore a user-defined value. The user-defined value is just a way to change

[CMake] avoid windows link warning: LNK4221

2008-05-14 Thread Phil Pellouchoud
I have a static library that is giving the following warning: LNK4221 Is there a way to tell cmake to add /IGNORE:4221 I would normally add this in the Additional Options: edit box on the Librarian/Command Line section of the project properties (Microsoft Visual Studio 2005).

Re: [CMake] Interference between MSVC and g95

2008-05-14 Thread Brad King
Arjen Markus wrote: It means that a combination of MSVC and g95 in one project is impossible. I think the problem is that the platform files for GNU and MSVC tools are both getting loaded but they have been written assuming they are always separate (which is the case in C-and C++-only

Re: [CMake] Symbian support?

2008-05-14 Thread Alexander Neundorf
On Wednesday 14 May 2008, Vikranth Gaddam wrote: Hi I have seen people asking questions related to cmake support for symbian builds. I would like to know if this is supported or any plans to support this :) It is not yet supported, but shouldn't be a bigger problem. You need a file for the

Re: [CMake] CMake-2.6 CMAKE_TOOLCHAIN_FILE

2008-05-14 Thread Alexander Neundorf
Hi Andreas, On Wednesday 14 May 2008, you wrote: Hi, Thank you for all these hints. Are details like that described in the Mastering CMake book? Yes and no. The process how the system and the compiler are determined is described, but not every implementation detail of the files. I tracked

Re: [CMake] Custom-Targets with unknown outputs

2008-05-14 Thread Christoph Cullmann
Am Mittwoch 14 Mai 2008 16:30:24 schrieben Sie: Are you sure the generated source file names are completely unpredictable? Unless some random generator is being used, those names are probably predictable, and it might be worth your while to look further into figuring out how you can do that.

Re: [CMake] Custom-Targets with unknown outputs

2008-05-14 Thread Christoph Cullmann
Am Mittwoch 14 Mai 2008 16:57:22 schrieben Sie: Would it work to use ctest in a custom comand to build the generated source files? I'm thinking something similar to how the VTK Examples directory is built as a separate project. Hmm, is it then possible that other targets depend on the result

Re: [CMake] Custom-Targets with unknown outputs

2008-05-14 Thread Clinton Stimpson
Christoph Cullmann wrote: Am Mittwoch 14 Mai 2008 16:57:22 schrieben Sie: Would it work to use ctest in a custom comand to build the generated source files? I'm thinking something similar to how the VTK Examples directory is built as a separate project. Hmm, is it then possible that