Mercurial > hg > orthanc-postgresql
changeset 154:d5a717cfa00f
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 04 Jan 2018 07:40:31 +0100 |
parents | 6f90b762be6a |
children | 591bfe198944 |
files | CMakeLists.txt |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Thu Jan 04 07:26:56 2018 +0100 +++ b/CMakeLists.txt Thu Jan 04 07:40:31 2018 +0100 @@ -30,20 +30,25 @@ set(BUILD_UNIT_TESTS ON CACHE BOOL "Build UnitTests") # Advanced parameters to fine-tune linking against system libraries -set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") set(USE_SYSTEM_BOOST ON CACHE BOOL "Use the system version of Boost") set(USE_SYSTEM_GOOGLE_TEST ON CACHE BOOL "Use the system version of Google Test") +set(USE_SYSTEM_JSONCPP ON CACHE BOOL "Use the system version of JsonCpp") set(USE_SYSTEM_LIBPQ ON CACHE BOOL "Use the system version of the PostgreSQL client library") set(USE_SYSTEM_ORTHANC_SDK ON CACHE BOOL "Use the system version of the Orthanc plugin SDK") +set(USE_SYSTEM_UUID ON CACHE BOOL "Use the system version of the uuid library from e2fsprogs") # Distribution-specific settings set(USE_GTEST_DEBIAN_SOURCE_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") mark_as_advanced(USE_GTEST_DEBIAN_SOURCE_PACKAGE) set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/Orthanc) -set(ORTHANC_DISABLE_PATCH ON) # No need for the "patch" command-line tool set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) +if (NOT "${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase") + # The "patch" command-line tool is only needed for Boost and LSB + set(ORTHANC_DISABLE_PATCH ON) +endif() + include(CheckIncludeFiles) include(CheckIncludeFileCXX) include(CheckLibraryExists)