Skip to content

Commit 9e74511

Browse files
authored
Merge pull request #192 from fwuehr95/master
Make contrib library configurable
2 parents 4fb8e5f + a0fdea9 commit 9e74511

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

options.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,10 @@ OPTION(
4949
"Build the Lucene++ documentation."
5050
OFF)
5151

52+
OPTION(
53+
ENABLE_CONTRIB
54+
"Enable building contrib library"
55+
ON)
5256

5357
# documentation options
5458
#========================================================================

src/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11

22
add_subdirectory(core)
3-
add_subdirectory(contrib)
43
add_subdirectory(config)
54

5+
if(ENABLE_CONTRIB)
6+
add_subdirectory(contrib)
7+
endif()
8+
69
if(ENABLE_DEMO)
710
add_subdirectory(demo)
811
endif()

0 commit comments

Comments
 (0)