comparison Resources/CMake/DcmtkConfiguration.cmake @ 2508:91ee08d986f9

possibility to disable zlib support in the Orthanc framework
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Mar 2018 11:24:17 +0200
parents de6eb6d0d34d
children 04873915beaf
comparison
equal deleted inserted replaced
2507:99116ed6f38c 2508:91ee08d986f9
100 message("The patches for DCMTK have already been applied") 100 message("The patches for DCMTK have already been applied")
101 endif() 101 endif()
102 102
103 IF (CMAKE_CROSSCOMPILING) 103 IF (CMAKE_CROSSCOMPILING)
104 if (CMAKE_COMPILER_IS_GNUCXX AND 104 if (CMAKE_COMPILER_IS_GNUCXX AND
105 ${CMAKE_SYSTEM_NAME} STREQUAL "Windows") # MinGW 105 CMAKE_SYSTEM_NAME STREQUAL "Windows") # MinGW
106 SET(C_CHAR_UNSIGNED 1 CACHE INTERNAL "Whether char is unsigned.") 106 SET(C_CHAR_UNSIGNED 1 CACHE INTERNAL "Whether char is unsigned.")
107
108 elseif(CMAKE_SYSTEM_NAME STREQUAL "Emscripten") # WebAssembly or asm.js
109 SET(C_CHAR_UNSIGNED 0 CACHE INTERNAL "Whether char is unsigned.")
110 SET(SIZEOF_VOID_P 4 CACHE INTERNAL "")
111
107 else() 112 else()
108 message(FATAL_ERROR "Support your platform here") 113 message(FATAL_ERROR "Support your platform here")
109 endif() 114 endif()
110 ENDIF() 115 ENDIF()
111 116