[CMake] Adding (not replacing) $ORIGIN to automatic build rpath

2014-06-25 Thread Daniel Schepler
First, the background on why I want this: Our product uses a licensing library that creates a .so file alongside the executable, and at runtime does a dlopen() on that .so file. But it doesn't use a full path, so we need to put $ORIGIN into the RPATH or users will have to set LD_LIBRARY_PATH to

[CMake] Add libraries to end of compilation line ...

2014-06-25 Thread Michael Burns via CMake
Hello, all. I work on a cross-platform project that has many libraries and several applications. CMake on Linux naturally adds the TARGET_LINK_LIBRARIES specified in the libraries after those specified in the TARGET_LINK_LIBRARIES for the application. However, there are several common system libra

Re: [CMake] How to get find_package(ZLIB) to set ZLIB_LIBRARIES to 32-bit version ?

2014-06-25 Thread Glenn Coombs
One of the nice things about cmake is that you can hide any complicated build options inside the CMakeLists.txt file and present options to the user via the cmake-gui. Your solution negates that - the user now has to know which compiler they are using and which options are relevant where as before