Re: [CMake] static libs and more

2008-07-17 Thread David Cole
On Thu, Jul 17, 2008 at 7:48 PM, Philip Lowman <[EMAIL PROTECTED]> wrote: Does anyone know of any other platforms that share filename extensions for > archive vs. shared libraries other than MSVC/Win32? > The .lib files associated with DLLs on Windows are not really "shared libraries". The DLLs t

Re: [CMake] static libs and more

2008-07-17 Thread Philip Lowman
On Thu, Jul 17, 2008 at 6:25 PM, Alin M Elena <[EMAIL PROTECTED]> wrote: > Hi All, > > I do not really think is any need to test if the lib is static or dynamic. > In real life you should already now that. > > Let us take as an example a package XXX we know from documentation that > provides a st

Re: [CMake] static libs and more

2008-07-17 Thread clinton
I also noticed that dumpbin /exports mylib.lib printed symbols out if it was an import library, but didn't if it was a static library. Clint On Thursday 17 July 2008 3:03:02 pm David Cole wrote: > If you do...: > dumpbin /symbols mylib.lib > > ...then: > The output will contain "_IMPORT_DESCRIP

Re: [CMake] static libs and more

2008-07-17 Thread Alin M Elena
Hi All, I do not really think is any need to test if the lib is static or dynamic. In real life you should already now that. Let us take as an example a package XXX we know from documentation that provides a static link libA.lib and a dynamic link libB.lib (windows case). i want to write a mod

Re: [CMake] FindThreads and Fortran

2008-07-17 Thread Alexander Neundorf
On Thursday 17 July 2008, Alin M Elena wrote: > Hi, > > I try to determine the correct -lpthread against which I link in a Fortran > project. (http://code.google.com/p/tdtbuj) > using only > find_package(Threads) > leads to an error > -- Looking for include files CMAKE_HAVE_PTHREAD_H > CMake Error:

Re: [CMake] cmake works only with --debug-trycompile

2008-07-17 Thread Alexander Neundorf
On Thursday 17 July 2008, Alin M Elena wrote: > Hi, > > I have a small project > http://code.google.com/p/tdtbuj > > cmake is the build system. > > in linux > if I do just cmake it fails to find the proper libs. Please give more details so we can help. > if I do cmake cmake --debug-trycompile wil

Re: [CMake] cmake distcc

2008-07-17 Thread Alexander Neundorf
On Thursday 17 July 2008, Vandenbroucke Sander wrote: > Hi, ... > Compiling is fine, distcc does it's job. Unfortunately my linker command > is messed up. CMake used to generate something like this: nios2-elf-g++ > OBJECTS -lsystem ... > > With distcc this changes to: nios2-elf-g++ OBJECTS -lsyste

Re: [CMake] static libs and more

2008-07-17 Thread David Cole
If you do...: dumpbin /symbols mylib.lib ...then: The output will contain "_IMPORT_DESCRIPTOR" if the .lib is an import library for a .dll file. It will (most likely) not contain this output if it is a static .lib file. It's a heuristic as I'm pretty sure the static .lib file will contain that ou

Re: [CMake] static libs and more

2008-07-17 Thread David Cole
If you do...: dumpbin /symbols mylib.lib ...then: The output will contain "_IMPORT_DESCRIPTOR" if the .lib is an import library for a .dll file. It will (most likely) not contain this output if it is a static .lib file. It's a heuristic as I'm pretty sure the static .lib file will contain that ou

Re: [CMake] static libs and more

2008-07-17 Thread Philip Lowman
.. Original Message ... On Thu, 17 Jul 2008 22:10:11 +0400 "Yuri Timenkov" <[EMAIL PROTECTED]> wrote: >On Thursday 17 July 2008 23:00:15 Alin M Elena wrote: >The main problem AFAIK for VS is that static and dynamic libraries are >indistinguishable by extension. They both have a .lib on

Re: [CMake] static libs and more

2008-07-17 Thread Alin M Elena
Hi, > The main problem AFAIK for VS is that static and dynamic libraries are > indistinguishable by extension. They both have a .lib one. And you don't > know in advance is some library is static one or just import library for > some dynamic one. > > For cygwin/mingw things may be more similar to

Re: [CMake] static libs and more

2008-07-17 Thread Yuri Timenkov
On Thursday 17 July 2008 23:00:15 Alin M Elena wrote: > Hi, > > 1. Few days ago maybe weeks on the list I have seen a discussion about > static/dynamic linking. > > One of the solution proposed there to achieve a static linking was > > if (UNIX) > set(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.so") > endif

[CMake] static libs and more

2008-07-17 Thread Alin M Elena
Hi, 1. Few days ago maybe weeks on the list I have seen a discussion about static/dynamic linking. One of the solution proposed there to achieve a static linking was if (UNIX) set(CMAKE_FIND_LIBRARY_SUFFIXES ".a;.so") endif(UNIX) Something similar can be done for windows I suspect. Maybe yo

[CMake] FindThreads and Fortran

2008-07-17 Thread Alin M Elena
Hi, I try to determine the correct -lpthread against which I link in a Fortran project. (http://code.google.com/p/tdtbuj) using only find_package(Threads) leads to an error -- Looking for include files CMAKE_HAVE_PTHREAD_H CMake Error: Unknown extension ".c" for fi

[CMake] cmake works only with --debug-trycompile

2008-07-17 Thread Alin M Elena
Hi, I have a small project http://code.google.com/p/tdtbuj cmake is the build system. in linux if I do just cmake it fails to find the proper libs. if I do cmake cmake --debug-trycompile will work (sometimes). I use cmake version 2.6-patch 1 RC-6 (in opensuse 11). The FindBLAS, LAPACK modules

[CMake] generic Symbian gcce-toolchain file

2008-07-17 Thread Frans.Fuerst
Hi, I'm trying to use CMake to build Symbian 9.2-FP1 (S60) executables in a generic way (i.e. not building mmp-files which have to be interpreted by perl-scripts provided with the SDKs). There have been similar questions asked here before but I haven't found a complete answer yet that would ma

[CMake] cmake distcc

2008-07-17 Thread Vandenbroucke Sander
Hi, I'm using cmake 2.4 to build code for an embedded platform. To link everything together I use static (.a) libraries. For the sake of compiling speed I want to use distcc. I do it like this: set CC=distcc nios2-elf-gcc set CXX=distcc nios2-elf-g++ set DISTCC_HOSTS=pc710 localhost cma

Re: [CMake] trouble with cmake 2.6-patch 0 cross compiling.

2008-07-17 Thread Axel Roebel
On Wednesday 16 July 2008 8:54:11 pm [EMAIL PROTECTED] wrote: > Hi. > > I've got cmake 2.6-patch 0 installed and I'm trying to get a simple > (helloworld.cpp) compiled and built on a linux system. > > My toolchain file looks like this: > > -- toolchain.cmake -- > SET( CMAKE_SYSTEM_NAME foobar ) > S