diff 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
line wrap: on
line diff
--- a/Resources/CMake/DcmtkConfiguration.cmake	Mon Mar 26 18:31:40 2018 +0200
+++ b/Resources/CMake/DcmtkConfiguration.cmake	Wed Mar 28 11:24:17 2018 +0200
@@ -102,8 +102,13 @@
 
   IF (CMAKE_CROSSCOMPILING)
     if (CMAKE_COMPILER_IS_GNUCXX AND
-        ${CMAKE_SYSTEM_NAME} STREQUAL "Windows")  # MinGW
+        CMAKE_SYSTEM_NAME STREQUAL "Windows")  # MinGW
       SET(C_CHAR_UNSIGNED 1 CACHE INTERNAL "Whether char is unsigned.")
+
+    elseif(CMAKE_SYSTEM_NAME STREQUAL "Emscripten")  # WebAssembly or asm.js
+      SET(C_CHAR_UNSIGNED 0 CACHE INTERNAL "Whether char is unsigned.")
+      SET(SIZEOF_VOID_P 4 CACHE INTERNAL "")
+
     else()
       message(FATAL_ERROR "Support your platform here")
     endif()