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
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
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