changeset 127:b963f3a9a86c wasm

fix static build
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 08 Nov 2017 17:53:55 +0100
parents c9e88e7935a4
children c993693e9e63
files Framework/Toolbox/OrthancSlicesLoader.cpp Platforms/Generic/CMakeLists.txt Resources/CMake/BoostExtendedConfiguration.cmake
diffstat 3 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Framework/Toolbox/OrthancSlicesLoader.cpp	Wed Nov 08 17:27:38 2017 +0100
+++ b/Framework/Toolbox/OrthancSlicesLoader.cpp	Wed Nov 08 17:53:55 2017 +0100
@@ -23,6 +23,7 @@
 
 #include "MessagingToolbox.h"
 
+#include <Core/Endianness.h>
 #include <Core/Images/Image.h>
 #include <Core/Images/ImageProcessing.h>
 #include <Core/Images/JpegReader.h>
--- a/Platforms/Generic/CMakeLists.txt	Wed Nov 08 17:27:38 2017 +0100
+++ b/Platforms/Generic/CMakeLists.txt	Wed Nov 08 17:53:55 2017 +0100
@@ -15,8 +15,12 @@
 SET(ENABLE_WEB_CLIENT ON)
 
 include(../../Resources/CMake/OrthancStoneConfiguration.cmake)
+include(../../Resources/CMake/BoostExtendedConfiguration.cmake)
 
-add_library(OrthancStone STATIC ${ORTHANC_STONE_SOURCES})
+add_library(OrthancStone STATIC
+  ${ORTHANC_STONE_SOURCES}
+  ${BOOST_EXTENDED_SOURCES}
+  )
 
 
 #####################################################################
--- a/Resources/CMake/BoostExtendedConfiguration.cmake	Wed Nov 08 17:27:38 2017 +0100
+++ b/Resources/CMake/BoostExtendedConfiguration.cmake	Wed Nov 08 17:53:55 2017 +0100
@@ -18,7 +18,7 @@
 
 
 if (BOOST_STATIC)
-  list(APPEND BOOST_SOURCES
+  list(APPEND BOOST_EXTENDED_SOURCES
     ${BOOST_SOURCES_DIR}/libs/program_options/src/cmdline.cpp
     ${BOOST_SOURCES_DIR}/libs/program_options/src/config_file.cpp
     ${BOOST_SOURCES_DIR}/libs/program_options/src/convert.cpp