Re: [CMake] Fwd: Removing overkill linking

2010-10-04 Thread Marcel Loose
On Sun, 2010-10-03 at 13:15 +0100, Paul McEnery wrote: Resolved! The solution was to set CMAKE_EXE_LINKER_FLAGS using -Wl,--as-needed. CMakeLists.txt: == cmake_minimum_required (VERSION 2.6) project(galinette) set(GALINETTE_VERSION 1.1

Re: [CMake] Fwd: Removing overkill linking

2010-10-03 Thread Paul McEnery
On 2 October 2010 23:19, Andreas Pakulat ap...@gmx.de wrote: [...] Thats because a link-interface for an executable doesn't make the slightest sense. The link-interface in cmake for a library target foo, defines which libraries should automatically get into the linker-call when linking some

Re: [CMake] Fwd: Removing overkill linking

2010-10-03 Thread Paul McEnery
Resolved! The solution was to set CMAKE_EXE_LINKER_FLAGS using -Wl,--as-needed. CMakeLists.txt: == cmake_minimum_required (VERSION 2.6) project(galinette) set(GALINETTE_VERSION 1.1 CACHE STRING Software version FORCE) set(bindir

Re: [CMake] Fwd: Removing overkill linking

2010-10-03 Thread Hendrik Sattler
Am Sonntag 03 Oktober 2010, 14:15:41 schrieb Paul McEnery: The solution was to set CMAKE_EXE_LINKER_FLAGS using -Wl,--as-needed. That is actually only a work-around. Pkg-config can handle the difference between static linking and dynamic linking but you have to tell it what is what. However,

[CMake] Fwd: Removing overkill linking

2010-10-02 Thread Paul McEnery
No sure what happened to this message. I checked the list archive, and only half of the message appeared http://www.cmake.org/pipermail/cmake/2010-October/039975.html On 1 October 2010 16:40, Marcel Loose lo...@astron.nl wrote: Hi Paul, Probably one of the packages that you pull in --

Re: [CMake] Fwd: Removing overkill linking

2010-10-02 Thread Marcel (ASTRON)
Op zaterdag 02-10-2010 om 19:11 uur [tijdzone +0100], schreef Paul McEnery: No sure what happened to this message. I checked the list archive, and only half of the message appeared http://www.cmake.org/pipermail/cmake/2010-October/039975.html On 1 October 2010 16:40, Marcel Loose

Re: [CMake] Fwd: Removing overkill linking

2010-10-02 Thread Paul McEnery
On 2 October 2010 21:49, Marcel (ASTRON) lo...@astron.nl wrote: Op zaterdag 02-10-2010 om 19:11 uur [tijdzone +0100], schreef Paul McEnery: No sure what happened to this message. I checked the list archive, and only half of the message appeared

Re: [CMake] Fwd: Removing overkill linking

2010-10-02 Thread Andreas Pakulat
On 02.10.10 23:00:57, Paul McEnery wrote: On 2 October 2010 21:49, Marcel (ASTRON) lo...@astron.nl wrote: Op zaterdag 02-10-2010 om 19:11 uur [tijdzone +0100], schreef Paul McEnery: No sure what happened to this message. I checked the list archive, and only half of the message