Re: [CMake] Problems building statically linked executable

2009-05-11 Thread Marcel Loose
Reply to self. On Mon, 2009-05-11 at 10:26 +0200, Marcel Loose wrote: --- 8 --- 8 --- 8 --- 8 --- 8 --- 8 --- 8 --- In the mean time, is there a way to get rid of these spurious -Wl,-Bdynamic and -Wl,-Bstatic flags? OK, I'll use this dirty hack for the time being when creating statically

Re: [CMake] Problems building statically linked executable

2009-05-11 Thread Brad King
Marcel Loose wrote: I'm really struggling to build statically linked executables with CMake (also see my previous post with subject: Static linking and find_library). I've answered in that thread. Furthermore I added the '-static' flag to the linker with SET(CMAKE_EXE_LINKER_FLAGS -static).