Mercurial > hg > orthanc
changeset 2523:21e2ed283cd5
fix wasm
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Apr 2018 16:48:49 +0200 |
parents | ce2dfba9417c |
children | a29ffb73f6fd |
files | Resources/CMake/DcmtkConfiguration.cmake |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/DcmtkConfiguration.cmake Tue Apr 10 06:57:42 2018 +0200 +++ b/Resources/CMake/DcmtkConfiguration.cmake Tue Apr 10 16:48:49 2018 +0200 @@ -101,6 +101,7 @@ endif() + # C_CHAR_UNSIGNED *must* be set before calling "GenerateDCMTKConfigure.cmake" IF (CMAKE_CROSSCOMPILING) if (CMAKE_COMPILER_IS_GNUCXX AND CMAKE_SYSTEM_NAME STREQUAL "Windows") # MinGW @@ -115,6 +116,9 @@ ${DCMTK_SOURCES_DIR}/config/include/dcmtk/config/arith.h COPYONLY) + UNSET(C_CHAR_UNSIGNED CACHE) + SET(C_CHAR_UNSIGNED 0 CACHE INTERNAL "") + else() message(FATAL_ERROR "Support your platform here") endif() @@ -156,7 +160,6 @@ UNSET(SIZEOF_LONG CACHE) UNSET(SIZEOF_SHORT CACHE) UNSET(SIZEOF_VOID_P CACHE) - UNSET(C_CHAR_UNSIGNED CACHE) SET(SIZEOF_VOID_P 4 CACHE INTERNAL "") SET(SIZEOF_CHAR 1 CACHE INTERNAL "") @@ -166,7 +169,6 @@ SET(SIZEOF_LONG 4 CACHE INTERNAL "") SET(SIZEOF_SHORT 2 CACHE INTERNAL "") SET(SIZEOF_VOID_P 4 CACHE INTERNAL "") - SET(C_CHAR_UNSIGNED 0 CACHE INTERNAL "") endif()