summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-chemistry/openbabel/files/openbabel-2.3.2-test_lib_path.patch')
-rw-r--r--sci-chemistry/openbabel/files/openbabel-2.3.2-test_lib_path.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sci-chemistry/openbabel/files/openbabel-2.3.2-test_lib_path.patch b/sci-chemistry/openbabel/files/openbabel-2.3.2-test_lib_path.patch
new file mode 100644
index 000000000000..1354f52685c6
--- /dev/null
+++ b/sci-chemistry/openbabel/files/openbabel-2.3.2-test_lib_path.patch
@@ -0,0 +1,27 @@
+diff -ru old/openbabel-2.3.0/test/CMakeLists.txt new/openbabel-2.3.0/test/CMakeLists.txt
+--- old/openbabel-2.3.0/test/CMakeLists.txt 2010-10-26 17:39:01.000000000 +0300
++++ new/openbabel-2.3.0/test/CMakeLists.txt 2010-11-14 18:13:32.000000000 +0200
+@@ -2,7 +2,7 @@
+ add_definitions(-DTESTDATADIR="\\"${CMAKE_SOURCE_DIR}/test/files/\\"")
+
+ # define FORMATDIR for location of format plugin binaries
+-add_definitions(-DFORMATDIR="\\"${openbabel_BINARY_DIR}/lib/\\"")
++add_definitions(-DFORMATDIR="\\"${openbabel_BINARY_DIR}/lib${LIB_SUFFIX}/\\"")
+
+ ###########################################################
+ # new tests using obtest.h
+@@ -32,12 +35,12 @@ set(tests
+ uniqueid
+ )
+
+-if (EIGEN2_FOUND)
++if(EIGEN2_FOUND OR EIGEN3_FOUND)
+ set(tests
+ align
+ ${tests}
+ )
+-endif (EIGEN2_FOUND)
++endif()
+
+ set(TEST_PATH ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
+