Skip to content

Commit 44e33da

Browse files
committed
Added optional type.
1 parent 12bf0d5 commit 44e33da

File tree

3 files changed

+439
-1
lines changed

3 files changed

+439
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ project(interval-tree)
66

77
add_library(interval-tree INTERFACE)
88

9+
if(INT_TREE_USE_OPTIONAL_POLYFILL)
10+
target_compile_definitions(interval-tree INTERFACE
11+
-DINTERVAL_TREE_USE_OPTIONAL_POLYFILL
12+
)
13+
endif()
14+
915
target_include_directories(interval-tree INTERFACE ./include)
1016

1117
if(INT_TREE_DRAW_EXAMPLES)

cmake/options.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
option(INT_TREE_DRAW_EXAMPLES "Draws some examples in a subdirectory. run make_drawable.sh before this" OFF)
2-
option(INT_TREE_ENABLE_TESTS "Enable tests?" OFF)
2+
option(INT_TREE_ENABLE_TESTS "Enable tests?" OFF)
3+
# You generally do not want to turn this on, unless you are testing the library.
4+
option(INT_TREE_USE_OPTIONAL_POLYFILL "Use optional polyfill?" OFF)

0 commit comments

Comments
 (0)