[CMake] Suppressing -rdynamic

2007-10-06 Thread Gonzalo Garramuño
I'm compiling under Linux and it seems like cmake is automatically adding -rdynamic to my build. This switch is okay for debug builds and open source tools, but for closed source it is a big problem. This switch is unfortunately exposing some unwanted functions in my code, like the licensing

Re: [CMake] Suppressing -rdynamic

2007-10-06 Thread Filip Brcic
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Дана субота 06 октобар 2007, Gonzalo Garramuño је написао(ла): I'm compiling under Linux and it seems like cmake is automatically adding -rdynamic to my build. This switch is okay for debug builds and open source tools, but for closed source it is

[CMake] Custom command not honoured

2007-10-06 Thread Matthew Smith
Hi everyone, I'm having problems getting a shell script I've written to generate a freedesktop.org desktop entry file during the build process. I've tried using execute_process and add_custom_command, and neither seem to have any effect. Here is the code snippet: if( UNIX AND NOT APPLE ) if(

Re: [CMake] Custom command not honoured

2007-10-06 Thread Alan W. Irwin
On 2007-10-06 13:25+0100 Matthew Smith wrote: [...]The custom command simply isn't being run. You must have some target (custom or otherwise) depend on the OUTPUT file of the custom command. See the FAQ for lots of examples. Alan __ Alan W. Irwin Astronomical

Re: [CMake] Suppressing -rdynamic

2007-10-06 Thread Gonzalo Garramuño
Therefore, you have to override CMAKE_SHARED_LIBRARY_LINK_C_FLAGS and set it to blank. Something like: SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS ) or something like that. Did you actually try it? Suppressing the variable does nothing. Even replacing Linux.cmake with my own does nothing. --

Re: [CMake] Suppressing -rdynamic

2007-10-06 Thread Filip Brcic
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Дана субота 06 октобар 2007, Gonzalo Garramuño је написао(ла): Therefore, you have to override CMAKE_SHARED_LIBRARY_LINK_C_FLAGS and set it to blank. Something like: SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS ) or something like that. Did you

Re: [CMake] Suppressing -rdynamic

2007-10-06 Thread Gonzalo Garramuño
Filip Brcic wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Дана субота 06 октобар 2007, Gonzalo Garramuño је написао(ла): Therefore, you have to override CMAKE_SHARED_LIBRARY_LINK_C_FLAGS and set it to blank. Something like: SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS )

Re: [CMake] Suppressing -rdynamic

2007-10-06 Thread Filip Brcic
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Дана субота 06 октобар 2007, Gonzalo Garramuño је написао(ла): Filip Brcic wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Дана субота 06 октобар 2007, Gonzalo Garramuño је написао(ла): Therefore, you have to override

[CMake] Eclipse support

2007-10-06 Thread Pau Garcia i Quiles
Hello, Does the Eclipse generator in CVS actually work? I have tried it and can't get it to work with Eclipse 3.3.1, CDT 4.0.1 and Qt C++ Eclipse integration (but that might be me, since I am not used to Eclipse) -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need

[CMake] Getting symlink source

2007-10-06 Thread Gonzalo Garramuño
cmake2.5, close to latest SVN. I have some files I need to copy but they are symlinks. I need to obtain the actual path of the file (not the symlink). I've tried doing: GET_FILENAME_COMPONENT( REALFILE ${sym} ABSOLUTE ) but it returns just the original filename. So this is either broken

[CMake] Fortran compiler check failing with Intel ifort 10.0 on OSX

2007-10-06 Thread Nico Galoppo
Hi, I'm trying to get the FindBLAS macros to work with cmake (as originally posted by Alan W. Irwin and patched here: http://www.mail-archive.com/cmake@cmake.org/msg08081.html), with the following CMakeLists.txt: PROJECT(SOFTPHYSICS Fortran) # Some custom cmake macros SET( CMAKE_MODULE_PATH