Advertisement
hobbes1069

opennl-fix-libname.patch

Jul 12th, 2011
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.87 KB | None | 0 0
  1. diff -ur ../OpenNL3.2.1.orig/CMakeLists.txt ./CMakeLists.txt
  2. --- ../OpenNL3.2.1.orig/CMakeLists.txt  2010-09-03 15:39:10.000000000 +0530
  3. +++ ./CMakeLists.txt    2011-07-12 23:54:27.554586984 +0530
  4. @@ -22,6 +22,9 @@
  5.  #              Project
  6.  ######################################
  7.  PROJECT(OpenNL3)
  8. +# Add version info
  9. +SET(OpenNL3_VERSION_MAJOR 3)
  10. +SET(OpenNL3_VERSION_MINOR 2)
  11.  
  12.  SET(GEEX_BUILD_PATH ${PROJECT_BINARY_DIR})
  13.  SET(BINARIES_RELATIVE_PATH /binaries/bin/)
  14. @@ -30,6 +33,8 @@
  15.      SET(LIBRARIES_RELATIVE_PATH /binaries/bin/)
  16.  ELSE(WIN32)
  17.      SET(LIBRARIES_RELATIVE_PATH /binaries/lib/)
  18. +    SET(LIBRARIES_SOVERSION 3.2.1)
  19. +    SET(LIBRARIES_VERSION 3)
  20.  ENDIF(WIN32)
  21.  
  22.  IF(WIN32)
  23. Only in ./: opennl-fix-libname.patch
  24. diff -ur ../OpenNL3.2.1.orig/src/CMakeLists.txt ./src/CMakeLists.txt
  25. --- ../OpenNL3.2.1.orig/src/CMakeLists.txt  2010-02-08 16:14:22.000000000 +0530
  26. +++ ./src/CMakeLists.txt    2011-07-12 23:54:25.981581590 +0530
  27. @@ -31,17 +31,17 @@
  28.  # creation of the library
  29.  IF(USE_CNC)
  30.      IF(WIN32)
  31. -       CUDA_ADD_LIBRARY(nl ${SOURCES} ${HeaderFiles})
  32. +       CUDA_ADD_LIBRARY(opennl ${SOURCES} ${HeaderFiles})
  33.      ELSE(WIN32)
  34. -        CUDA_ADD_LIBRARY(nl ${SOURCES} )
  35. -        set_target_properties(nl PROPERTIES COMPILE_FLAGS "-malign-double")
  36. +        CUDA_ADD_LIBRARY(opennl ${SOURCES} )
  37. +        set_target_properties(opennl PROPERTIES
  38. +                                     COMPILE_FLAGS "-malign-double"
  39. +                                     SOVERSION ${LIBRARIES_SOVERSION}
  40. +                             )
  41.      ENDIF(WIN32)
  42. -    CUDA_ADD_CUBLAS_TO_TARGET(nl)
  43. +    CUDA_ADD_CUBLAS_TO_TARGET(opennl)
  44.  ELSE(USE_CNC)
  45.      IF(WIN32)
  46. -       ADD_LIBRARY(nl ${SOURCES} ${HeaderFiles})
  47. +       ADD_LIBRARY(opennl ${SOURCES} ${HeaderFiles})
  48.      ELSE(WIN32)
  49. -       ADD_LIBRARY(nl ${SOURCES} )
  50. +       ADD_LIBRARY(opennl ${SOURCES} )
  51.      ENDIF(WIN32)
  52.  ENDIF(USE_CNC)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement