diff --git a/CMakeLists.txt b/CMakeLists.txt index 783c51d6a..e31dbdd86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,6 +4,12 @@ PROJECT(fish-shell CXX) # We are C++11. SET(CMAKE_CXX_STANDARD 11) +# Work around cmake/ninja bug that fails on install with ninja +# See https://cmake.org/Bug/print_bug_page.php?bug_id=13934 +if (NINJA) + SET(CMAKE_BUILD_WITH_INSTALL_RPATH 1) +endif(NINJA) + # Disable exception handling. ADD_COMPILE_OPTIONS(-fno-exceptions)