Re: [CMake] Searching for an undefined symbol in library

2010-11-15 Thread Marek Szuba
On Mon, 15 Nov 2010 12:00:04 -0500 cmake-requ...@cmake.org wrote: > How do you select which of the libraries to use? Based on your > Fortran compiler? To be exact, based on the Fortran compiler used to build the binary-only library. > If so, I would check for the CMAKE_Fortran_COMPILER_ID variabl

[CMake] Searching for an undefined symbol in library

2010-11-15 Thread Marek Szuba
Hello, To begin with, a bit of background. The project which I've been converting to CMake depends on a certain binary-only library. This library is available in several versions, differing in what Fortran compiler has been used to produce it; to make things simple let's assume there are only two

[CMake] Separate CXXFLAGS and LDFLAGS

2010-10-01 Thread Marek Szuba
Hello, How can one define C++ compiler flags which are used ONLY at compile time? Traditional LDFLAGS appear to clearly map to CMAKE_xxx_LINKER_FLAGS, however CMAKE_CXX_FLAGS work differently from what I would like - they are passed to both the compiler and the linker. Cheers, -- MS

[CMake] Disabling -fPIC

2010-10-01 Thread Marek Szuba
Hello, Recently I have converted a Linux project I work on from hand-crafted make files to CMake. Everything up to and including installation works fine, however the resulting binaries cannot be run due to the system on which this software runs disallowing text relocations. Having compared how the