X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=CMakeConfig.txt;h=0d584981c27737cb9e063010a4096428342adc22;hb=785f671d065aa12941a98fca384248ac5cd6e527;hp=707ff4bbedd470bab7af83b227645a54552fba7a;hpb=c3526f7547e7a69204a25982f6764afdab663252;p=m6w6%2Flibmemcached diff --git a/CMakeConfig.txt b/CMakeConfig.txt index 707ff4bb..0d584981 100644 --- a/CMakeConfig.txt +++ b/CMakeConfig.txt @@ -3,12 +3,21 @@ set(CMAKE_BUILD_TYPE Release set(CMAKE_INSTALL_PREFIX /usr/local CACHE PATH "install prefix") +if(APPLE) + set(CMAKE_INSTALL_RPATH @loader_path + CACHE STRING "set relative rpath") +elseif(UNIX) + # FIXME + set(CMAKE_INSTALL_RPATH $ORIGIN + CACHE STRING "set relative rpath") +endif() + option(BUILD_TESTING "whether to enable build of the test suite" OFF) option(BUILD_DOCSONLY "build *only* documentation" OFF) option(BUILD_DOCS "build documentation" - OFF) + ${BUILD_DOCSONLY}) option(BUILD_DOCS_HTML "build HTML docs" ${BUILD_DOCS}) option(BUILD_DOCS_MAN "build manpages" @@ -42,7 +51,7 @@ if(BUILD_DOCS) CACHE STRING "additional sphinx-build command line options") set(SPHINX_THEME "sphinx_rtd_theme" CACHE STRING "sphinx HTML theme") - set(SPHINX_THEME_OPTIONS "'collapse_navigation':False, 'navigation_depth':2, 'titles_only':False, 'includehidden':False" + set(SPHINX_THEME_OPTIONS "" CACHE STRING "sphinx HTML theme options") set(SPHINX_EXTENSIONS "" CACHE STRING "comma separated list of quoted sphinx extensions")