Mercurial > hg > orthanc
diff Resources/CMake/OrthancFrameworkConfiguration.cmake @ 2483:9c54c40eaf25
logging primitives for WebAssembly
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 02 Mar 2018 15:10:37 +0100 |
parents | 80c1ed8e7283 |
children | 91ee08d986f9 |
line wrap: on
line diff
--- a/Resources/CMake/OrthancFrameworkConfiguration.cmake Thu Mar 01 09:29:06 2018 +0100 +++ b/Resources/CMake/OrthancFrameworkConfiguration.cmake Fri Mar 02 15:10:37 2018 +0100 @@ -428,15 +428,26 @@ if (ORTHANC_SANDBOXED) add_definitions( -DORTHANC_SANDBOXED=1 - -DORTHANC_ENABLE_LOGGING=0 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 ) + + if (CMAKE_SYSTEM_NAME STREQUAL "Emscripten") + add_definitions( + -DORTHANC_ENABLE_LOGGING=1 + -DORTHANC_ENABLE_LOGGING_STDIO=1 + ) + else() + add_definitions( + -DORTHANC_ENABLE_LOGGING=0 + ) + endif() else() add_definitions( -DORTHANC_SANDBOXED=0 -DORTHANC_ENABLE_LOGGING=1 -DORTHANC_ENABLE_LOGGING_PLUGIN=0 + -DORTHANC_ENABLE_LOGGING_STDIO=0 ) list(APPEND ORTHANC_CORE_SOURCES_INTERNAL