Practical CMake Configuration Techniques

Configuring RPATH in CMake First, disable the automatic addition of build-time paths to RPATH at the beginning of your CMake configuration: set(CMAKE_SKIP_RPATH TRUE) After declaring a library with add_library but before linking with target_link_libraries, set these properties to enable dependency lookup in relative ../lib or ./lib directories ...

Posted on Mon, 06 Jul 2026 16:04:05 +0000 by songwind