summaryrefslogtreecommitdiff
path: root/clucene/clucene-core-2.3.3.4-install_contribs_lib.patch
blob: 8fbb3c7164abdff707f28a664aafff4f4ba50f89 (plain)
    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  
   12  
   13 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
   14 --- clucene-core-2.3.3.4/src/contribs-lib/CMakeLists.txt	2011-03-17 03:21:07.000000000 +0300
   15 +++ clucene-core-2.3.3.4-mod/src/contribs-lib/CMakeLists.txt	2011-08-16 17:14:13.499275499 +0400
   16 @@ -106,9 +106,26 @@ add_library(clucene-contribs-lib SHARED
   17  )
   18  TARGET_LINK_LIBRARIES(clucene-contribs-lib ${clucene_contrib_extra_libs})
   19  
   20 +#install public headers.
   21 +FOREACH(file ${HEADERS})
   22 +	get_filename_component(apath ${file} PATH)
   23 +	get_filename_component(aname ${file} NAME)
   24 +	file(RELATIVE_PATH relpath ${CMAKE_SOURCE_DIR}/src/contribs-lib ${apath})
   25 +	IF ( NOT aname MATCHES "^_.*" )
   26 +		install(FILES ${file} 
   27 +		        DESTINATION include/${relpath}
   28 +		        COMPONENT development)
   29 +	ENDIF ( NOT aname MATCHES "^_.*" )
   30 +ENDFOREACH(file)
   31 +
   32  #set properties on the libraries
   33  SET_TARGET_PROPERTIES(clucene-contribs-lib PROPERTIES
   34      VERSION ${CLUCENE_VERSION}
   35      SOVERSION ${CLUCENE_SOVERSION}
   36      COMPILE_DEFINITIONS_DEBUG _DEBUG
   37  )
   38 +
   39 +#and install library
   40 +install(TARGETS clucene-contribs-lib 
   41 +        DESTINATION ${LIB_DESTINATION}  
   42 +        COMPONENT runtime )

Generated by cgit