From bf249a6455077b3510e703c04280ee96f15babfa Mon Sep 17 00:00:00 2001
From: Stefan Bienert <stefan.bienert@unibas.ch>
Date: Mon, 20 Mar 2017 16:22:59 +0100
Subject: [PATCH] Extend include path to work with MsgPack

---
 modules/io/src/CMakeLists.txt       | 3 +++
 modules/io/tests/test_io_msgpack.cc | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/io/src/CMakeLists.txt b/modules/io/src/CMakeLists.txt
index 0a4917a3c..fcf8da5fd 100644
--- a/modules/io/src/CMakeLists.txt
+++ b/modules/io/src/CMakeLists.txt
@@ -166,3 +166,6 @@ target_link_libraries(ost_io ${BOOST_IOSTREAM_LIBRARIES})
 if (ENABLE_IMG)
   target_link_libraries(ost_io ${TIFF_LIBRARIES} ${PNG_LIBRARIES})
 endif()
+
+# Extend the include path for building OST to have msgpack available.
+include_directories("${STAGE_DIR}/include/ost/io/msgpack")
\ No newline at end of file
diff --git a/modules/io/tests/test_io_msgpack.cc b/modules/io/tests/test_io_msgpack.cc
index 586d9eae1..60503c4dd 100644
--- a/modules/io/tests/test_io_msgpack.cc
+++ b/modules/io/tests/test_io_msgpack.cc
@@ -20,4 +20,4 @@
 // the idea of this test is basically to check that we MessagePack is available
 // to OST. Real testing of MessagePack should happen in that project itself.
 
-//#include <ost/io/msgpack/msgpack.hpp>
+#include <ost/io/msgpack/msgpack.hpp>
-- 
GitLab