Mercurial > hg > orthanc
view Resources/CMake/PugixmlConfiguration.cmake @ 4251:6784a119484d Orthanc-0.8.6
hotpatch to make Orthanc 0.8.6 compile on Ubuntu 16.04
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 15 Oct 2020 13:56:50 +0200 |
parents | 7db0632ebb56 |
children |
line wrap: on
line source
if (USE_PUGIXML) add_definitions(-DORTHANC_PUGIXML_ENABLED=1) if (STATIC_BUILD OR NOT USE_SYSTEM_PUGIXML) set(PUGIXML_SOURCES_DIR ${CMAKE_BINARY_DIR}/pugixml-1.4) DownloadPackage( "7c56c91cfe3ecdee248a8e4892ef5781" "http://www.orthanc-server.com/downloads/third-party/pugixml-1.4.tar.gz" "${PUGIXML_SOURCES_DIR}") include_directories( ${PUGIXML_SOURCES_DIR}/src ) set(PUGIXML_SOURCES ${PUGIXML_SOURCES_DIR}/src/vlog_is_on.cc ) list(APPEND THIRD_PARTY_SOURCES ${PUGIXML_SOURCES_DIR}/src/pugixml.cpp ) else() CHECK_INCLUDE_FILE_CXX(pugixml.hpp HAVE_PUGIXML_H) if (NOT HAVE_PUGIXML_H) message(FATAL_ERROR "Please install the libpugixml-dev package") endif() link_libraries(pugixml) endif() else() add_definitions(-DORTHANC_PUGIXML_ENABLED=0) endif()