Edit

kc3-lang/libevent/PreLoad.cmake

Branch :

  • Show log

    Commit

  • Author : Azat Khuzhin
    Date : 2022-03-10 23:11:14
    Hash : 6349e94a
    Message : Do not install RPATH for install tree by default In ce8be2385b5fee16859a630fca0c98ad290c8e21 ("cmake: set rpath for libraries on linux") RPATH was first instroduced. Later in 6d09efe8686de824adf3d8810bbe0d5c386643e4 ("Set RPATH only if installation is done into non system directory") it was set only if it was installed to non system directory. But absolute RPATH not a good default, let's change this. Fixes: #920

  • PreLoad.cmake
  • # Disable RPATH for install tree by default.
    #
    # PreLoad is used to change the default, since CMakeLists.txt will already have
    # the default, and it will NO.
    if (NOT DEFINED CMAKE_SKIP_INSTALL_RPATH)
        set(CMAKE_SKIP_INSTALL_RPATH ON CACHE STRING "" FORCE)
    endif()