Skip to content

Commit

Permalink
Fix headers install, contrib headers should be installed.
Browse files Browse the repository at this point in the history
  • Loading branch information
hillwoodroc committed Jun 8, 2021
1 parent 2e9ddcc commit ad09039
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/contrib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ project(contrib)
####################################
# create library target
####################################
add_subdirectory(include)

if (LUCENE_BUILD_SHARED)
add_library(lucene++-contrib SHARED)
else()
Expand Down Expand Up @@ -92,4 +94,5 @@ install(TARGETS lucene++-contrib
install(
FILES ${contrib_headers}
LIBRARY DESTINATION "include/lucene++"
LIBRARY DESTINATION "src/contrib/include"

This comment has been minimized.

Copy link
@chenyang8094

chenyang8094 Jun 21, 2021

Contributor

I encountered this error while compiling:

CMake Error at src/contrib/CMakeLists.txt:94 (install):
  install FILES given unknown argument "LIBRARY".
COMPONENT development-contrib)
11 changes: 11 additions & 0 deletions src/contrib/include/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
####################################
# install headers
####################################

file(GLOB_RECURSE lucene_headers
"${CMAKE_CURRENT_SOURCE_DIR}/*.h"
)

install(
FILES ${lucene_headers}
DESTINATION include/lucene++ )

0 comments on commit ad09039

Please sign in to comment.