clucene-core-2.3.3.4-install_contribs_lib.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. diff -NaurpBb clucene-core-2.3.3.4/CMakeLists.txt clucene-core-2.3.3.4-mod/CMakeLists.txt
  2. --- clucene-core-2.3.3.4/CMakeLists.txt 2011-03-17 03:21:07.000000000 +0300
  3. +++ clucene-core-2.3.3.4-mod/CMakeLists.txt 2011-08-16 16:56:55.968268152 +0400
  4. @@ -163,7 +163,7 @@ IF ( BUILD_CONTRIBS )
  5. SET(BUILD_CONTRIBS_LIB 1)
  6. ENDIF ( BUILD_CONTRIBS )
  7. IF ( BUILD_CONTRIBS_LIB )
  8. - ADD_SUBDIRECTORY (src/contribs-lib EXCLUDE_FROM_ALL)
  9. + ADD_SUBDIRECTORY (src/contribs-lib)
  10. ENDIF ( BUILD_CONTRIBS_LIB )
  11. diff -NaurpBb clucene-core-2.3.3.4/src/contribs-lib/CMakeLists.txt clucene-core-2.3.3.4-mod/src/contribs-lib/CMakeLists.txt
  12. --- clucene-core-2.3.3.4/src/contribs-lib/CMakeLists.txt 2011-03-17 03:21:07.000000000 +0300
  13. +++ clucene-core-2.3.3.4-mod/src/contribs-lib/CMakeLists.txt 2011-08-16 17:14:13.499275499 +0400
  14. @@ -106,9 +106,26 @@ add_library(clucene-contribs-lib SHARED
  15. )
  16. TARGET_LINK_LIBRARIES(clucene-contribs-lib ${clucene_contrib_extra_libs})
  17. +#install public headers.
  18. +FOREACH(file ${HEADERS})
  19. + get_filename_component(apath ${file} PATH)
  20. + get_filename_component(aname ${file} NAME)
  21. + file(RELATIVE_PATH relpath ${CMAKE_SOURCE_DIR}/src/contribs-lib ${apath})
  22. + IF ( NOT aname MATCHES "^_.*" )
  23. + install(FILES ${file}
  24. + DESTINATION include/${relpath}
  25. + COMPONENT development)
  26. + ENDIF ( NOT aname MATCHES "^_.*" )
  27. +ENDFOREACH(file)
  28. +
  29. #set properties on the libraries
  30. SET_TARGET_PROPERTIES(clucene-contribs-lib PROPERTIES
  31. VERSION ${CLUCENE_VERSION}
  32. SOVERSION ${CLUCENE_SOVERSION}
  33. COMPILE_DEFINITIONS_DEBUG _DEBUG
  34. )
  35. +
  36. +#and install library
  37. +install(TARGETS clucene-contribs-lib
  38. + DESTINATION ${LIB_DESTINATION}
  39. + COMPONENT runtime )