comparison CMakeLists.txt @ 176:55f8cf4ea237

support for Linux Standard Base
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Jan 2018 09:01:14 +0100
parents dd1ad819ca33
children 3f62dac67971
comparison
equal deleted inserted replaced
175:dd1ad819ca33 176:55f8cf4ea237
40 # Distribution-specific settings 40 # Distribution-specific settings
41 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)") 41 set(USE_GOOGLE_TEST_DEBIAN_PACKAGE OFF CACHE BOOL "Use the sources of Google Test shipped with libgtest-dev (Debian only)")
42 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE) 42 mark_as_advanced(USE_GOOGLE_TEST_DEBIAN_PACKAGE)
43 43
44 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/Orthanc) 44 set(ORTHANC_ROOT ${CMAKE_SOURCE_DIR}/Orthanc)
45 set(ORTHANC_DISABLE_PATCH ON) # No need for the "patch" command-line tool
46 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost) 45 set(ENABLE_LOCALE OFF) # Disable support for locales (notably in Boost)
46
47 if (NOT "${CMAKE_SYSTEM_VERSION}" STREQUAL "LinuxStandardBase")
48 # The "patch" command-line tool is only needed for Boost and LSB
49 set(ORTHANC_DISABLE_PATCH ON)
50 endif()
51
47 include(CheckIncludeFile) 52 include(CheckIncludeFile)
48 include(CheckIncludeFiles) 53 include(CheckIncludeFiles)
49 include(CheckIncludeFileCXX) 54 include(CheckIncludeFileCXX)
50 include(CheckLibraryExists) 55 include(CheckLibraryExists)
51 include(FindPythonInterp) 56 include(FindPythonInterp)