[CMake] Mirroring libtool shared library creation for AIX in cmake

2007-09-19 Thread Albert Chin
When using -brtl, libtool creates shared libraries on AIX with: $ nm -BCpg [object files] | awk '{ if ((($2 == "T") || ($2 == "D") || ($2 == "B")) && (substr($3,1,1) != ".")) { print $3 } }' | sort -u > lib.exp $ xlc -o [shared library] [object files] ... \ -Wl,-brtl -Wl,-blibpath:/usr/l

Re: [CMake] Modules/Platform/HP-UX.cmake on HP-UX/IA64

2007-09-19 Thread Albert Chin
On Wed, Sep 19, 2007 at 12:24:20PM -0500, Albert Chin wrote: > Modules/Platform/HP-UX.cmake has: > SET(CMAKE_SHARED_LIBRARY_SUFFIX ".sl") > SET(CMAKE_FIND_LIBRARY_SUFFIXES ".sl" ".so" ".a") > > On HP-UX/PA, shared libraries end in ".sl". On HP-UX/IA, they can end > in ".sl" or ".so", with ".so

[CMake] Modules/Platform/HP-UX.cmake on HP-UX/IA64

2007-09-19 Thread Albert Chin
Modules/Platform/HP-UX.cmake has: SET(CMAKE_SHARED_LIBRARY_SUFFIX ".sl") SET(CMAKE_FIND_LIBRARY_SUFFIXES ".sl" ".so" ".a") On HP-UX/PA, shared libraries end in ".sl". On HP-UX/IA, they can end in ".sl" or ".so", with ".so" being preferred. So, for HP-UX/IA, the above should be: SET(CMAKE_SHA

[CMake] Creating a static lib from other static libs, HOW?

2007-09-19 Thread Brandon Van Every
On 9/18/07, Goswin von Brederlow <[EMAIL PROTECTED]> wrote: > "Brandon Van Every" <[EMAIL PROTECTED]> writes: > > > > I just got done telling all you guys how to reuse objects in a > > platform independent manner. And it's in the FAQ now for handy > > reference. > > Problems arise when you have to

Re: [CMake] Creating a static lib from other static libs, HOW?

2007-09-19 Thread Brandon Van Every
On 9/18/07, Juan Sanchez <[EMAIL PROTECTED]> wrote: > Hello Brandon, > > How do you create the final archive without the ar command? The FAQ points at feature request #5155 where this is explained. If the explanation given is not clear, let me know. Cheers, Brandon Van Every

Re: [CMake] Cannot build WXDialog for CMake CVS

2007-09-19 Thread Miguel A. Figueroa-Villanueva
Hello, I just picked this thread up after doing a search on the list, triggered by an automated message sent from mantis (since I was monitoring a related bug). I just wanted to make note that (as co-author and maintainer of the module) I have been looking at the FindwxWidgets script and plan to

Re: [CMake] Extend FIND_LIBRARY to properly recognize debug libs

2007-09-19 Thread Bill Hoffman
Christian Ehrlicher wrote: Von: Bill Hoffman <[EMAIL PROTECTED]> Christian Ehrlicher wrote: We use this approach FIND_LIBRARY(kdewin32 KDEWIN32LIB) FIND_LIBRARY(kdwin32_d KDEWIN32LIB_D) if(KDEWIN32LIB and KDEWIN32LIB_D) set(KDEWIN32_LIBRARY optimized ... debug ...) ... che

Re: [CMake] Extend FIND_LIBRARY to properly recognize debug libs

2007-09-19 Thread Bill Hoffman
Christian Ehrlicher wrote: Hi, For now cmake has the option to set a debug postifx for debug libs/executables by one simple command: set(CMAKE_DEBUG_POSTFIX "_d") It would be nice to extend FIND_LIBRARY in a way that its possible to give that debug postfix so avoid code duplication everywher

Re: [CMake] Debug buildtype broken

2007-09-19 Thread Andreas Pakulat
On 19.09.07 08:32:22, Bill Hoffman wrote: > Andreas Pakulat wrote: > >Hi, > > > >yesterday I noticed that the Debug buildtype has the same problems as > >the --enable-debug option in autohell. Its not possible to properly > >debug an application that has been built with CMAKE_BUILD_TYPE=Debug. > >A

Re: [CMake] Extend FIND_LIBRARY to properly recognize debug libs

2007-09-19 Thread Christian Ehrlicher
> Von: Bill Hoffman <[EMAIL PROTECTED]> > Christian Ehrlicher wrote: > > > >> > > We use this approach > > FIND_LIBRARY(kdewin32 KDEWIN32LIB) > > FIND_LIBRARY(kdwin32_d KDEWIN32LIB_D) > > if(KDEWIN32LIB and KDEWIN32LIB_D) > > set(KDEWIN32_LIBRARY optimized ... debug ...) > > ... checking a

Re: [CMake] Re: -G KDevelop3 and Fortran

2007-09-19 Thread Alin M Elena
Hi Alexander, > > 1. this looks strange to me > > > > > > > > > > > > 2. ??? > > Do the two points above give you any problems in kdevelop or are they > just "looking strange" if you inspect the project file directly ? > Yap. They look strange if you inspec

Re: [CMake] Extend FIND_LIBRARY to properly recognize debug libs

2007-09-19 Thread Bill Hoffman
Christian Ehrlicher wrote: We use this approach FIND_LIBRARY(kdewin32 KDEWIN32LIB) FIND_LIBRARY(kdwin32_d KDEWIN32LIB_D) if(KDEWIN32LIB and KDEWIN32LIB_D) set(KDEWIN32_LIBRARY optimized ... debug ...) ... checking all three possibilities target_link_libraries(foo KDEWIN32_LIBRARY) Bu

Re: [CMake] Extend FIND_LIBRARY to properly recognize debug libs

2007-09-19 Thread Christian Ehrlicher
> Von: Bill Hoffman > Betreff: Re: [CMake] Extend FIND_LIBRARY to properly recognize debug libs > Christian Ehrlicher wrote: > > Hi, > > > > For now cmake has the option to set a debug postifx for debug > libs/executables by one simple command: > > > > set(CMAKE_DEBUG_POSTFIX "_d") > > > > It woul

Re: [CMake] Debug buildtype broken

2007-09-19 Thread BlinkEye
On Wed, September 19, 2007 14:32, Bill Hoffman wrote: > Andreas Pakulat wrote: >> Hi, >> >> yesterday I noticed that the Debug buildtype has the same problems as >> the --enable-debug option in autohell. Its not possible to properly >> debug an application that has been built with CMAKE_BUILD_TYPE=

Re: [CMake] Debug buildtype broken

2007-09-19 Thread Bill Hoffman
Andreas Pakulat wrote: Hi, yesterday I noticed that the Debug buildtype has the same problems as the --enable-debug option in autohell. Its not possible to properly debug an application that has been built with CMAKE_BUILD_TYPE=Debug. At least not with Unix Makefile's (possibly the same applies

[CMake] recursive shared library dependencies?

2007-09-19 Thread Dusan Zatkovsky
Hi all. I have a question about library dependencies in cmake projects on linux. Let's see an example: PROJECT ( foo ) ADD_EXECUTABLE ( foo_bin foo.cpp ) TARGET_LINK_LIBRARIES ( foo_bin ssl ) When I am building a project by "make" command, it produces output like this: Scanning dependencies of

[CMake] how to use install command in CMakeLists.txt

2007-09-19 Thread Manoj Biswal
Dear All, I can copy files from one place to another by using the install command. I want to copy a folder by giving the command install, But I could not find out the solution. Please help me how to do that. Regards, Manoj ___ CMake mailing

[CMake] how to use install command in CMakeLists.txt

2007-09-19 Thread Manoj Biswal
Dear All, I can copy files from one place to another by using the install command. I want to copy a folder by giving the command install, But I could not find out the solution. Please help me how to do that. Regards, Manoj ___ CMake mailing

[CMake] Debug buildtype broken

2007-09-19 Thread Andreas Pakulat
Hi, yesterday I noticed that the Debug buildtype has the same problems as the --enable-debug option in autohell. Its not possible to properly debug an application that has been built with CMAKE_BUILD_TYPE=Debug. At least not with Unix Makefile's (possibly the same applies to MinGW Makefile's but I