From 064ec1406cf805de75047e85a8d78497b3f5f805 Mon Sep 17 00:00:00 2001
From: Rashad Kanavath <rashad.kanavath@c-s.fr>
Date: Mon, 28 Aug 2017 18:05:50 +0200
Subject: [PATCH] COMP: expose openmp and sse flags usage

---
 CMake/OTBConfig.cmake.in                  | 6 ++++++
 Modules/Core/Common/src/otbConfigure.h.in | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/CMake/OTBConfig.cmake.in b/CMake/OTBConfig.cmake.in
index 81a400b76f..fcaed33779 100644
--- a/CMake/OTBConfig.cmake.in
+++ b/CMake/OTBConfig.cmake.in
@@ -44,6 +44,12 @@ set(OTB_VERSION_PATCH "@OTB_VERSION_PATCH@")
 # OTB's CMake directory with modules OTB uses.
 set(OTB_CMAKE_DIR "@OTB_CONFIG_CMAKE_DIR@")
 
+# OTB uses OPENMP
+set(OTB_USE_OPENMP "@OTB_USE_OPENMP@")
+
+# OTB uses SSE optim
+set(OTB_USE_SSE_FLAGS "@OTB_USE_SSE_FLAGS@")
+
 # use Find*.cmake files included in OTB package for external dependencies. (OpenCV, GDAL etc..)
 set(CMAKE_MODULE_PATH ${OTB_CMAKE_DIR} ${CMAKE_MODULE_PATH})
 
diff --git a/Modules/Core/Common/src/otbConfigure.h.in b/Modules/Core/Common/src/otbConfigure.h.in
index d6968cb48f..5194398344 100644
--- a/Modules/Core/Common/src/otbConfigure.h.in
+++ b/Modules/Core/Common/src/otbConfigure.h.in
@@ -31,3 +31,7 @@
 #cmakedefine OTB_SHOW_ALL_MSG_DEBUG
 
 #cmakedefine OTB_USE_GDAL_20
+
+#cmakedefine OTB_USE_OPENMP
+
+#cmakedefine OTB_USE_SSE_FLAGS
-- 
GitLab