Re: [CMake] Override of link flag for one specific shared library

2008-09-03 Thread Martin Apel
Unfortunately this does not work. It seems that CMake generates all libraries defined in one CMakeLists.txt with the setting of CMAKE_SHARED_LINKER_FLAGS at the end of the file. This causes this setting to be applied to all libraries in the CMakeLists.txt. As I have 4 libraries in this one CMakeLis

Re: [CMake] Understanding why CMAKE_BUILD_TYPE cannot be set

2008-09-03 Thread Philip Lowman
On Wed, Sep 3, 2008 at 2:01 PM, Convey, Christian J CIV NUWC NWPT < [EMAIL PROTECTED]> wrote: > From the mail archives and personal experience, it looks to me like > commands of the form: > SET(CMAKE_BUILD_TYPE Debug) > > aren't effective. I don't think I fully understood the explanations of >

Re: [CMake] Cross-compiling for z/OS -- linker question

2008-09-03 Thread Phil Smith
Thanks; I gave up on trying to get long filenames to work. There are too many levels involved, and if you get it right on 1-n, then n+1 messes it up, etc., etc. Right, the I took out the FORCE_C_COMPILER stuff. But it still breaks things it shouldn't. z/OS is indeed not the only OS on System z

Re: [CMake] Override of link flag for one specific shared library

2008-09-03 Thread David Cole
Maybe save and restore the CMAKE_SHARED_LINKER_FLAGS around your reset of it in the sub-CMakeLists.txt...? On Wed, Sep 3, 2008 at 10:41 AM, Martin Apel <[EMAIL PROTECTED]> wrote: > Hi, > > I have defined the following in a top-level CMakeLists.txt: > SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHAR

Re: [CMake] Out-of-project link library problem

2008-09-03 Thread Alan W. Irwin
On 2008-09-03 20:16-0400 Andrew Sayman wrote: On Wed, Sep 3, 2008 at 7:57 PM, Christopher Harvey <[EMAIL PROTECTED]> wrote: try getting rid of quotes Getting rid of the quotes doesn't change anything. putting them all in a single command. This isn't helpful without removing all of the ben

Re: [CMake] Cross-compiling for z/OS -- linker question

2008-09-03 Thread David Cole
${PLINK_EXECUTABLE} contains spaces... Maybe you need escaped quotes: SET(CMAKE_CXX_LINK_EXECUTABLE "\"${PLINK_EXECUTABLE}\" \" around the executable variable reference...? On Wed, Sep 3, 2008 at 6:04 PM, Alexander Neundorf <[EMAIL PROTECTED]>wrote: > On Monday 25 August 2008, Phil Smith wrote

Re: [CMake] Out-of-project link library problem

2008-09-03 Thread Andrew Sayman
On Wed, Sep 3, 2008 at 7:57 PM, Christopher Harvey <[EMAIL PROTECTED]> wrote: > try getting rid of quotes Getting rid of the quotes doesn't change anything. > putting them all in a single command. This isn't helpful without removing all of the benefits of the CMake standard modules. If I wanted

Re: [CMake] Out-of-project link library problem

2008-09-03 Thread Christopher Harvey
usually, I just do this type of thing: TARGET_LINK_LIBRARIES(binary SDL GL GLU GLEW) try getting rid of quotes, and putting them all in a single command. Andrew Sayman wrote: I've been working on linking to some system libraries in a project I'm building in Linux and I've run into a problem wit

[CMake] Out-of-project link library problem

2008-09-03 Thread Andrew Sayman
I've been working on linking to some system libraries in a project I'm building in Linux and I've run into a problem with CMake adding redundant linker arguments. The simplest case I came down to is this: In the Example/Demo/CMakeLists.txt file add the following lines: target_link_libraries (hello

Re: [CMake] cmake vista tutorial?

2008-09-03 Thread Craig Miller
The FIND_PROGRAM(CMAKE_RC_COMPILER NAMES ${CMAKE_RC_COMPILER_LIST} DOC "RC compiler") line in CMakeDetermineRCCompiler.cmake is setting CMAKE_RC_COMPILER_LIST to "rc". I'll debug further this evening. Craig -Original Message- From: Bill Hoffman [mailto:[EMAIL PROTECTED] Sent: Wednesday

Re: [CMake] Cross-compiling for z/OS -- linker question

2008-09-03 Thread Alexander Neundorf
On Monday 25 August 2008, Phil Smith wrote: > I'm back on this, after a week at a conference and a week of vacation. > > I have the GET_FILENAME_COMPONENT call working, and it returns what I'd > expect (c:/progra~1/dignus), but the FIND_PROGRAM resolves the path with > blanks (c:/Program Files/Dign

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-09-03 Thread Alexander Neundorf
On Wednesday 03 September 2008, Andreas Pakulat wrote: > On 03.09.08 17:52:02, Alexander Neundorf wrote: > > On Thursday 28 August 2008, Andreas Pakulat wrote: > > > On 28.08.08 10:16:48, BRM wrote: > > > > ... > > > > > IMHO the approach to regenerate project description files for an IDE > > > fro

Re: [CMake] Can't compile a quite simple Fortran static library

2008-09-03 Thread Bill Hoffman
Renato N. Elias wrote: Bill Hoffman wrote: Renato N. Elias wrote: A managed to do something work (but not in the way that I'd like). In CMake, when configuring my project, if a check the "Show Advanced Values" and insert a "/c" in the CMAKE_Fortran_FLAGS the project works fine. Weir

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-09-03 Thread Andreas Pakulat
On 03.09.08 17:52:02, Alexander Neundorf wrote: > On Thursday 28 August 2008, Andreas Pakulat wrote: > > On 28.08.08 10:16:48, BRM wrote: > ... > > IMHO the approach to regenerate project description files for an IDE > > from a buildsystem tool is simply broken. > > Well, it has to. Otherwise the

Re: [CMake] [vtk-developers] VTK-5-2 and Qt 4.4 build config on OSX

2008-09-03 Thread clinton
It shouldn't make a difference to the cmake variables. The debug libraries get installed into the same frameworks. And cmake references the frameworks, not the libraries within the frameworks. To run your application with the debug libraries in the frameworks, you set the environment variabl

Re: [CMake] [vtk-developers] VTK-5-2 and Qt 4.4 build config on OSX

2008-09-03 Thread Darren Weber
Thanks, Clint! As you say, they provide a separate debug library, ie see: http://trolltech.com/developer/downloads/qt/mac qt-mac-opensource-4.4.1.dmg qt-mac-opensource-4.4.1-debug-libs.dmg (dmg containing ONLY the debug libraries, only usable with dmg above installed) I'll check this out and see

Re: [CMake] compiler bug turning up in cmake package?

2008-09-03 Thread Alexander Neundorf
On Tuesday 26 August 2008, Rex Dieter wrote: > John Fine wrote: > > Ulrich Drepper wrote: > >> It's most certainly not that simple. I haven't looked at the sources. > >> But the asm code does not really correspond to the code above. The > >> function above is most certainly inlined. The problem m

Re: [CMake] cmake vista tutorial?

2008-09-03 Thread Bill Hoffman
Craig Miller wrote: Yep, a Visual Studio 2005 target works. The output of rc /? is: c:\users\craig\nav\maps\basemaps\install>rc /? Microsoft (R) Windows (R) Resource Compiler Version 5.2.3690.0 Copyright (C) Microsoft Corporation. All rights reserved. c:\users\craig\nav\maps\basemaps\i

Re: [CMake] cmake vista tutorial?

2008-09-03 Thread Craig Miller
Forgot to answer the last question... I did a custom compiler installation, but only so far as selecting whether or not I wanted Visual C++, Visual Basic, etc. Nothing fancy and nmake, etc all work from the Visual Studio command prompt (I use them everyday). Craig -Original Message- Fro

Re: [CMake] cmake vista tutorial?

2008-09-03 Thread Craig Miller
Yep, a Visual Studio 2005 target works. The output of rc /? is: c:\users\craig\nav\maps\basemaps\install>rc /? Microsoft (R) Windows (R) Resource Compiler Version 5.2.3690.0 Copyright (C) Microsoft Corporation. All rights reserved. Usage: rc [options] .RC input file Switches: /rEmit .

Re: [CMake] [vtk-developers] VTK-5-2 and Qt 4.4 build config on OSX

2008-09-03 Thread clinton
On Wednesday 03 September 2008 12:28:57 pm Darren Weber wrote: > In ccmake settings for VTK-5-2 with Qt 4.4 on OSX, I see a lot of > settings like this: > > QT_QTCORE_LIBRARY > optimized;/Library/Frameworks/QtCore.framework;debug;/Library/Frameworks/Qt >Core.framework QT_QTCORE_LIBRARY_DEBUG QT_Q

[CMake] VTK-5-2 and Qt 4.4 build config on OSX

2008-09-03 Thread Darren Weber
In ccmake settings for VTK-5-2 with Qt 4.4 on OSX, I see a lot of settings like this: QT_QTCORE_LIBRARY optimized;/Library/Frameworks/QtCore.framework;debug;/Library/Frameworks/QtCore.framework QT_QTCORE_LIBRARY_DEBUG QT_QTCORE_LIBRARY_DEBUG-NOTFOUND The optimized and debug libraries are both s

Re: [CMake] [vtk-developers] problems with VTK python module installation on OSX (after a custom build)

2008-09-03 Thread Darren Weber
I think we may be on the "right" track with addition(s) to the DYLD path, ie: [ [EMAIL PROTECTED] ~/src/kitware/VTK_build ]$ echo $DYLD_LIBRARY_PATH [ [EMAIL PROTECTED] ~/src/kitware/VTK_build ]$ export DYLD_LIBRARY_PATH=/usr/local/lib/vtk-5.2 [ [EMAIL PROTECTED] ~/src/kitware/VTK_build ]$ echo $

[CMake] Understanding why CMAKE_BUILD_TYPE cannot be set

2008-09-03 Thread Convey, Christian J CIV NUWC NWPT
>From the mail archives and personal experience, it looks to me like commands of the form: SET(CMAKE_BUILD_TYPE Debug) aren't effective. I don't think I fully understood the explanations of why, though. If it's ok to specify this variable on the cmake command line ( cmake -DCMAKE_BUILD_TYPE=D

Re: [CMake] unrecognized option - --out-implib

2008-09-03 Thread Pau Garcia i Quiles
Quoting John Giordano <[EMAIL PROTECTED]>: Hello: I have been trying desperately to get CMake to configure my system with no luck. I am hoping someone can help me. I have the gcc compiler running as a cross compiler producing code for a coldfire V2 chip. The Netburner company has sup

Re: [CMake] cmake vista tutorial?

2008-09-03 Thread Bill Hoffman
Craig Miller wrote: I'm running Visual Studio 2005 w/ SP1. OK, so lets start from the beginning... Create a very simple project: ---CMakeLists.txt-- cmake_minimum_required (VERSION 2.6) project(bar) add_library(foo foo.c) - foo.c int foo() { return 1; } Put th

Re: [CMake] unset() command

2008-09-03 Thread Alexander Neundorf
On Tuesday 26 August 2008, Philip Lowman wrote: > On Mon, Aug 25, 2008 at 10:31 AM, Fernando Cacciola < > > [EMAIL PROTECTED]> wrote: > > And while you are it.. I currently use: set(var) to read the value > > back from the cache (very usefull somtimes), but this is undocumented and > > extremely no

Re: [CMake] cmake vista tutorial?

2008-09-03 Thread Bill Hoffman
Craig Miller wrote: Yeah, I made a few posts last week with the details of the specific problem I'm having. A couple of folks tried to help, but in the end they were stumped too. Here's an excerpt with the meat of the problem from one of those posts: On Aug 28, 2008, at 5:04 PM, Craig Miller

Re: [CMake] problems with VTK python module installation on OSX (after a custom build)

2008-09-03 Thread Mike Jackson
On Sep 3, 2008, at 1:01 PM, Darren Weber wrote: Thanks heaps for some very useful insight into resolving my OSX nightmares. It always helps to RTFM! I was starting to think there is a problem within the .so file and how it specifies the location of the dylib required (path and version). As

Re: [CMake] problems with VTK python module installation on OSX (after a custom build)

2008-09-03 Thread Mike Jackson
otool -L [complete path to library] is what you are looking for. That will reveal all the libraries and any rpaths that were used in the linking process. On Sep 3, 2008, at 1:01 PM, Darren Weber wrote: As yet, I have no idea how to "debug" that. I was stratching around for ldd or someth

Re: [CMake] cmake vista tutorial?

2008-09-03 Thread Craig Miller
Yeah, I made a few posts last week with the details of the specific problem I'm having. A couple of folks tried to help, but in the end they were stumped too. Here's an excerpt with the meat of the problem from one of those posts: > On Aug 28, 2008, at 5:04 PM, Craig Miller wrote: > >> Mike, >>

Re: [CMake] problems with VTK python module installation on OSX (after a custom build)

2008-09-03 Thread Darren Weber
Thanks heaps for some very useful insight into resolving my OSX nightmares. It always helps to RTFM! I was starting to think there is a problem within the .so file and how it specifies the location of the dylib required (path and version). As yet, I have no idea how to "debug" that. I was strat

Re: [CMake] cmake vista tutorial?

2008-09-03 Thread clinton
I've been using CMake on Vista 64 for a while, even with big projects. I've not had the problems you've had from your previous posts. Clint On Wednesday 03 September 2008 10:45:14 am Craig Miller wrote: > Thanks for the reply Alex. As a new user, I wasn't aware of the wiki and > didn't think to

Re: [CMake] cmake vista tutorial?

2008-09-03 Thread Bill Hoffman
Craig Miller wrote: Thanks for the reply Alex. As a new user, I wasn't aware of the wiki and didn't think to look under the developer menu (thought it was for CMake devs, not devs using CMake). I was following the directions under http://www.cmake.org/HTML/Documentation.html. I'll take a cl

Re: [CMake] Bug? Broken header files in Visual C++ 2008 project

2008-09-03 Thread Alexander Neundorf
On Thursday 28 August 2008, Andreas Pakulat wrote: > On 28.08.08 10:16:48, BRM wrote: ... > IMHO the approach to regenerate project description files for an IDE > from a buildsystem tool is simply broken. Well, it has to. Otherwise the project file become wrong. That's not a big problem for the

Re: [CMake] CMake build: CMAKE_OBJCOPY?

2008-09-03 Thread Alexander Neundorf
On Saturday 23 August 2008, Darren Weber wrote: > What is CMAKE_OBJCOPY and CMAKE_OBJDUMP? They are not found on my system. I > don't see an entry in the book index for these variables. If found, they point to objcopy and objdump from the binutils. They are currently more or less only there for co

Re: [CMake] re-config on make all

2008-09-03 Thread Alexander Neundorf
On Thursday 28 August 2008, Vandenbroucke Sander wrote: ... > I'm still on 2.4. Upgrading is planned some time in the future. > > > What is your exact original command line for running CMake? > > set CC=distcc nios2-elf-gcc > set CXX=distcc nios2-elf-g++ > cmake -G "MSYS Makefiles" ../ -DCMAKE_SYST

Re: [CMake] cmake vista tutorial?

2008-09-03 Thread Craig Miller
Thanks for the reply Alex. As a new user, I wasn't aware of the wiki and didn't think to look under the developer menu (thought it was for CMake devs, not devs using CMake). I was following the directions under http://www.cmake.org/HTML/Documentation.html. I'll take a closer look, but a quick

Re: [CMake] cmake vista tutorial?

2008-09-03 Thread Alexander Neundorf
On Thursday 28 August 2008, Craig Miller wrote: ... > Any links to recent tutorials would be very appreciated. Did you have a look at the wiki ? It's in the "Developers" menu. Beside that, if you find things which are missing/wrong in the html pages for documentation, please consider filing bug

Re: [CMake] -DNDEBUG passed to Qt moc compiler

2008-09-03 Thread clinton
On Wednesday 03 September 2008 5:41:53 am Nicolas Desprès wrote: > Hi, > > I'm using cmake 2.6.0 and Qt-4.4.1 commercial on windows. While trying > to compile my Qt application in release mode using > -DCMAKE_BUILD_TYPE=Release, I met a problem with conditional Qt slots. > In one of my header, I ha

[CMake] Override of link flag for one specific shared library

2008-09-03 Thread Martin Apel
Hi, I have defined the following in a top-level CMakeLists.txt: SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--unresolved-symbols=ignore-in-shared-libs") Now I'd like to reset this for one specific library in a subdirectory (in a separate CMakeLists.txt added with ADD_SUBDIR

[CMake] unrecognized option - --out-implib

2008-09-03 Thread John Giordano
Hello: I have been trying desperately to get CMake to configure my system with no luck. I am hoping someone can help me. I have the gcc compiler running as a cross compiler producing code for a coldfire V2 chip. The Netburner company has supplied me with the gcc toolchain for cross comp

Re: [CMake] cmake 2.6 insists on using MSVC x64 even when in 32 bit shell

2008-09-03 Thread Bill Hoffman
Anders Moe wrote: Thank for answering. I'm using the CmakeSetup.exe utility and interactively pick the Visual Studio 8 2005 compiler when it asks meI hope that answered the question ? The error dialog doesn't allow copy/paste, or I'd include more info. The information should be i

[CMake] -DNDEBUG passed to Qt moc compiler

2008-09-03 Thread Nicolas Desprès
Hi, I'm using cmake 2.6.0 and Qt-4.4.1 commercial on windows. While trying to compile my Qt application in release mode using -DCMAKE_BUILD_TYPE=Release, I met a problem with conditional Qt slots. In one of my header, I have something like that: #ifndef NDEBUG void mySlot() #endif In debug mod

Re: [CMake] cmake 2.6 insists on using MSVC x64 even when in 32 bit shell

2008-09-03 Thread Anders Moe
Thank for answering. I'm using the CmakeSetup.exe utility and interactively pick the Visual Studio 8 2005 compiler when it asks meI hope that answered the question ? The error dialog doesn't allow copy/paste, or I'd include more info. Regards, Anders __

Re: [CMake] cmake 2.6 insists on using MSVC x64 even when in 32 bit shell

2008-09-03 Thread David Cole
What CMake generator are you using? On Wed, Sep 3, 2008 at 4:10 AM, Anders Moe <[EMAIL PROTECTED]> wrote: > > > Hi all > > I'm trying to compile a 32 bit version of VTK using the 32 bit MSVC 2005 > command shell. Note that I'm running XP64. > > This works fine for Qt, but cmake gives an error du

[CMake] cmake 2.6 insists on using MSVC x64 even when in 32 bit shell

2008-09-03 Thread Anders Moe
Hi all I'm trying to compile a 32 bit version of VTK using the 32 bit MSVC 2005 command shell. Note that I'm running XP64. This works fine for Qt, but cmake gives an error during the "simpel test program compile" where it appears that the test solution *.sln is setup for x64, since the er

Re: [CMake] problems with VTK python module installation on OSX (after a custom build)

2008-09-03 Thread Martin Costabel
Darren Weber wrote: [] ImportError: dlopen(/usr/local/lib/python2.5/site-packages/vtk/libvtkCommonPython.so, 10): Library not loaded: libvtkCommonPythonD.5.2.dylib Referenced from: /usr/local/lib/python2.5/site-packages/vtk/libvtkCommonPython.so Reason: image not found This is not a prob