Re: [CMake] Generating dependencies with gcc -M

2010-06-28 Thread Tom Birch
On Jun 28, 2010, at 10:09 AM, Michael Hertling wrote: > On 06/28/2010 05:24 AM, Tom Birch wrote: >> CMake's dependency scanner uses its own parser to scan for #include >> directives, and then builds up the dependency tree this way. I know it's >> possible to rig up an invocation of gcc -M to ge

Re: [CMake] mixed C/C++ link errors on Solaris

2010-06-28 Thread j s
Not familiar with your compiler, but a c++ "main" should be used to ensure all c++ static global objects are initialized properly. gcc does a good job at hiding this. Juan On Jun 28, 2010 6:46 PM, "Matthew Woehlke" wrote: I have a library 'bar' that is C++, but exports a C API. So, say, I have

[CMake] mixed C/C++ link errors on Solaris

2010-06-28 Thread Matthew Woehlke
I have a library 'bar' that is C++, but exports a C API. So, say, I have this CMakeLists.txt: add_library(bar bar.cpp) add_executable(foo foo.c) target_link_libraries(foo bar) On most platforms this is fine, but on Solaris it can't link due to unresolved externals. I can work around this by

[CMake] BundleUtilities and gp_file_type vs OpenMP

2010-06-28 Thread Michaƫl Presseau
Hi, I have an application that is using OpenMP. In windows, OpenMP need the vcomp.dll. While building my installer with CPack, I use the BundleUtilities and fix_bundle to retrieve all the dlls. Unfortunately, the function gp_file_type("${f}" "${p}" p_type)" where ${p} = vcomp.dll, VComp file

[CMake] CMake 2.8.2 available for download

2010-06-28 Thread David Cole
On behalf of myself, Ken, Bill, Brad, Alex, Zach and the rest of the CMake team, we are pleased to announce that CMake 2.8.2 is available for download at: http://www.cmake.org/cmake/resources/software.html Here are the changes for CMake 2.8.2: No changes in CMake 2.8.2 since 2.8.2-rc4. Changes

Re: [CMake] Generating dependencies with gcc -M

2010-06-28 Thread Michael Hertling
On 06/28/2010 05:24 AM, Tom Birch wrote: > CMake's dependency scanner uses its own parser to scan for #include > directives, and then builds up the dependency tree this way. I know it's > possible to rig up an invocation of gcc -M to generate the correct > dependencies, and then feed this into t

Re: [CMake] Better BlueGene/P and cross-compile support for CMake

2010-06-28 Thread Brad King
Todd Gamblin wrote: > CMake cross-compile support is assuming that there is only > one (or maybe a few) directories where target software might be > installed. I view this as CMAKE_FIND_ROOT_PATH helping for platforms whose SDKs are organized that way. If there is no root and all the target libra

Re: [CMake] Better BlueGene/P and cross-compile support for CMake

2010-06-28 Thread Todd Gamblin
On Jun 28, 2010, at 8:03 AM, Brad King wrote: > Todd Gamblin wrote: >> So it's *probably* safe to set your CMAKE_FIND_ROOT_PATH to >> /bgsys/drivers/ppcfloor, but technically it's outside your >> definition above. > [snip] >> Thinking about this some more, maybe you just don't *need* a >> find roo

Re: [CMake] An observation about CTest

2010-06-28 Thread Alan W. Irwin
On 2010-06-28 07:03+0200 Andreas Mohr wrote: Hello, On Sun, Jun 27, 2010 at 05:09:41PM -0400, cmake-requ...@cmake.org wrote: Your remarks focus on old-fashioned macros so it is possible you are not aware of functions? As far as I know, most or all macros can be replaced by functions which do h

Re: [CMake] No +DD64 compiler option for HP-UX on IA64

2010-06-28 Thread Bill Hoffman
Sounds like the install of gcc is broken on this machine. Basically you are saying that gcc foo.c will fail on this machine. CMake assumes a working compiler. On Sun, Jun 27, 2010 at 9:37 PM, Won Kim wrote: > Hello, > > I've been trying to set up CMake on different build machines. > > Everythi

Re: [CMake] Better BlueGene/P and cross-compile support for CMake

2010-06-28 Thread Brad King
Todd Gamblin wrote: > So it's *probably* safe to set your CMAKE_FIND_ROOT_PATH to > /bgsys/drivers/ppcfloor, but technically it's outside your > definition above. [snip] > Thinking about this some more, maybe you just don't *need* a > find root on BG/P ... You can get all the system information > y

Re: [CMake] rpath problems with kdevplatform

2010-06-28 Thread Andreas Pakulat
On 28.06.10 08:44:35, Brad King wrote: > Andreas Pakulat wrote: > > On 26.06.10 13:26:29, Andreas Pakulat wrote: > >> Ping? Any further ideas on this? Could someone at least point me to the > >> source code in cmake that decides wether to add RPATH_REMOVE or > >> RPATH_REPLACE to the cmake_install.

Re: [CMake] An observation about CTest

2010-06-28 Thread Michael Hertling
On 06/28/2010 08:55 AM, Michael Wild wrote: > > On 28. Jun, 2010, at 7:03 , Andreas Mohr wrote: > >> Hello, >> >> On Sun, Jun 27, 2010 at 05:09:41PM -0400, cmake-requ...@cmake.org wrote: >>> Your remarks focus on old-fashioned macros so it is possible you are not >>> aware of functions? As far as

Re: [CMake] Different configurations with Visual Studio

2010-06-28 Thread Michael Wild
On 28. Jun, 2010, at 15:17 , Mark Van Peteghem wrote: > Hi, > > I am using CMake to generate Visual Studio project files, later also for > CodeBlocks. > > It seems that CMake generates four different configurations for Visual > Studio: Debug, Release, MinSizeRel and RelWithDebInfo. However, I n

[CMake] Different configurations with Visual Studio

2010-06-28 Thread Mark Van Peteghem
Hi, I am using CMake to generate Visual Studio project files, later also for CodeBlocks. It seems that CMake generates four different configurations for Visual Studio: Debug, Release, MinSizeRel and RelWithDebInfo. However, I need other configuations, Debug and Release, both for Win32 and MX3, in

Re: [CMake] rpath problems with kdevplatform

2010-06-28 Thread Brad King
Andreas Pakulat wrote: > On 26.06.10 13:26:29, Andreas Pakulat wrote: >> Ping? Any further ideas on this? Could someone at least point me to the >> source code in cmake that decides wether to add RPATH_REMOVE or >> RPATH_REPLACE to the cmake_install.cmake file? Look at "cmInstallTargetGenerator::A

Re: [CMake] [Eclipse CDT4 Generator] issue finding windres.exe

2010-06-28 Thread Yegor Yefremov
>> I'm using CMake, MinGW and Eclipse as described here >> http://www.cmake.org/Wiki/Eclipse_CDT4_Generator. In my project I >> need to compile a resource file, so I've used the >> add_custom_command() to achieve this. If I run make in MSYS it >> succeeds, but running from Eclipse causes a problem

[CMake] [Eclipse CDT4 Generator] issue finding windres.exe

2010-06-28 Thread Yegor Yefremov
I'm using CMake, MinGW and Eclipse as described here http://www.cmake.org/Wiki/Eclipse_CDT4_Generator. In my project I need to compile a resource file, so I've used the add_custom_command() to achieve this. If I run make in MSYS it succeeds, but running from Eclipse causes a problem, since Ecli

[CMake] CPack custom page

2010-06-28 Thread Bo Thorsen
Hi people, I'm trying to build a custom NSIS page that's shown at the end of the installer, after all files have been installed. The purpose is to set up a Windows service. I can do the code for installing the service, but I'm having some problems adding the custom page for it. And searching