openbabel-2.3.2-test_lib_path.patch 873 B

12345678910111213141516171819202122232425262728
  1. diff -ru old/openbabel-2.3.0/test/CMakeLists.txt new/openbabel-2.3.0/test/CMakeLists.txt
  2. --- old/openbabel-2.3.0/test/CMakeLists.txt 2010-10-26 17:39:01.000000000 +0300
  3. +++ new/openbabel-2.3.0/test/CMakeLists.txt 2010-11-14 18:13:32.000000000 +0200
  4. @@ -2,7 +2,7 @@
  5. add_definitions(-DTESTDATADIR="\\"${CMAKE_SOURCE_DIR}/test/files/\\"")
  6. # define FORMATDIR for location of format plugin binaries
  7. -add_definitions(-DFORMATDIR="\\"${openbabel_BINARY_DIR}/lib/\\"")
  8. +add_definitions(-DFORMATDIR="\\"${openbabel_BINARY_DIR}/lib${LIB_SUFFIX}/\\"")
  9. ###########################################################
  10. # new tests using obtest.h
  11. @@ -32,12 +35,12 @@ set(tests
  12. uniqueid
  13. )
  14. -if (EIGEN2_FOUND)
  15. +if(EIGEN2_FOUND OR EIGEN3_FOUND)
  16. set(tests
  17. align
  18. ${tests}
  19. )
  20. -endif (EIGEN2_FOUND)
  21. +endif()
  22. set(TEST_PATH ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})