Added patch to omptl to make everything work together
This commit is contained in:
parent
f0d9fb1625
commit
b8ca531987
1
external/external_build.cmake
vendored
1
external/external_build.cmake
vendored
@ -266,6 +266,7 @@ ExternalProject_Add(omptl
|
|||||||
URL ${CMAKE_SOURCE_DIR}/external/omptl-20120422.tar.bz2
|
URL ${CMAKE_SOURCE_DIR}/external/omptl-20120422.tar.bz2
|
||||||
CONFIGURE_COMMAND echo "No configure"
|
CONFIGURE_COMMAND echo "No configure"
|
||||||
BUILD_COMMAND echo "No build"
|
BUILD_COMMAND echo "No build"
|
||||||
|
PATCH_COMMAND patch -p1 -t -N < ${CMAKE_SOURCE_DIR}/external/patch-omptl
|
||||||
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory ${OMPTL_BUILD_DIR} ${EXT_INSTALL}/include/omptl
|
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory ${OMPTL_BUILD_DIR} ${EXT_INSTALL}/include/omptl
|
||||||
)
|
)
|
||||||
include_directories(${EXT_INSTALL}/include)
|
include_directories(${EXT_INSTALL}/include)
|
||||||
|
94
external/patch-omptl
vendored
Normal file
94
external/patch-omptl
vendored
Normal file
@ -0,0 +1,94 @@
|
|||||||
|
diff -ur omptl.orig/omptl_algorithm omptl/omptl_algorithm
|
||||||
|
--- omptl.orig/omptl_algorithm 2017-01-16 14:58:37.996690639 +0100
|
||||||
|
+++ omptl/omptl_algorithm 2017-01-16 15:00:26.678641720 +0100
|
||||||
|
@@ -20,7 +20,7 @@
|
||||||
|
#define OMPTL_ALGORITHM 1
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
-#include <omptl/omptl>
|
||||||
|
+#include "omptl"
|
||||||
|
|
||||||
|
namespace omptl
|
||||||
|
{
|
||||||
|
@@ -553,9 +553,9 @@
|
||||||
|
} // namespace omptl
|
||||||
|
|
||||||
|
#ifdef _OPENMP
|
||||||
|
- #include <omptl/omptl_algorithm_par.h>
|
||||||
|
+ #include "omptl_algorithm_par.h"
|
||||||
|
#else
|
||||||
|
- #include <omptl/omptl_algorithm_ser.h>
|
||||||
|
+ #include "omptl_algorithm_ser.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /* OMPTL_ALGORITHM */
|
||||||
|
diff -ur omptl.orig/omptl_algorithm_par.h omptl/omptl_algorithm_par.h
|
||||||
|
--- omptl.orig/omptl_algorithm_par.h 2017-01-16 14:58:37.996690639 +0100
|
||||||
|
+++ omptl/omptl_algorithm_par.h 2017-01-16 14:59:57.974126410 +0100
|
||||||
|
@@ -21,8 +21,8 @@
|
||||||
|
#include <cmath>
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
|
-#include <omptl/omptl_tools.h>
|
||||||
|
-#include <omptl/omptl_numeric>
|
||||||
|
+#include "omptl_tools.h"
|
||||||
|
+#include "omptl_numeric"
|
||||||
|
|
||||||
|
#include <iterator>
|
||||||
|
|
||||||
|
diff -ur omptl.orig/omptl_numeric omptl/omptl_numeric
|
||||||
|
--- omptl.orig/omptl_numeric 2017-01-16 14:58:37.996690639 +0100
|
||||||
|
+++ omptl/omptl_numeric 2017-01-16 15:00:57.051186974 +0100
|
||||||
|
@@ -19,7 +19,7 @@
|
||||||
|
#define OMPTL_NUMERIC 1
|
||||||
|
|
||||||
|
#include <numeric>
|
||||||
|
-#include <omptl/omptl>
|
||||||
|
+#include "omptl"
|
||||||
|
|
||||||
|
namespace omptl
|
||||||
|
{
|
||||||
|
@@ -73,11 +73,11 @@
|
||||||
|
} // namespace omptl
|
||||||
|
|
||||||
|
#ifdef _OPENMP
|
||||||
|
- #include <omptl/omptl_numeric_par.h>
|
||||||
|
+ #include "omptl_numeric_par.h"
|
||||||
|
#else
|
||||||
|
- #include <omptl/omptl_numeric_ser.h>
|
||||||
|
+ #include "omptl_numeric_ser.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-#include <omptl/omptl_numeric_extensions.h>
|
||||||
|
+#include "omptl_numeric_extensions.h"
|
||||||
|
|
||||||
|
#endif /* OMPTL_NUMERIC */
|
||||||
|
diff -ur omptl.orig/omptl_numeric_extensions.h omptl/omptl_numeric_extensions.h
|
||||||
|
--- omptl.orig/omptl_numeric_extensions.h 2017-01-16 14:58:37.996690639 +0100
|
||||||
|
+++ omptl/omptl_numeric_extensions.h 2017-01-16 14:59:21.549472508 +0100
|
||||||
|
@@ -51,9 +51,9 @@
|
||||||
|
} // namespace
|
||||||
|
|
||||||
|
#ifdef _OPENMP
|
||||||
|
- #include <omptl/omptl_numeric_extensions_par.h>
|
||||||
|
+ #include "omptl_numeric_extensions_par.h"
|
||||||
|
#else
|
||||||
|
- #include <omptl/omptl_numeric_extensions_ser.h>
|
||||||
|
+ #include "omptl_numeric_extensions_ser.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
namespace omptl
|
||||||
|
diff -ur omptl.orig/omptl_numeric_par.h omptl/omptl_numeric_par.h
|
||||||
|
--- omptl.orig/omptl_numeric_par.h 2017-01-16 14:58:37.996690639 +0100
|
||||||
|
+++ omptl/omptl_numeric_par.h 2017-01-16 14:59:36.397739066 +0100
|
||||||
|
@@ -23,8 +23,8 @@
|
||||||
|
#include <functional>
|
||||||
|
#include <iterator>
|
||||||
|
|
||||||
|
-#include <omptl/omptl_algorithm>
|
||||||
|
-#include <omptl/omptl_tools.h>
|
||||||
|
+#include "omptl_algorithm"
|
||||||
|
+#include "omptl_tools.h"
|
||||||
|
|
||||||
|
namespace omptl
|
||||||
|
{
|
Loading…
Reference in New Issue
Block a user