File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -31,8 +31,11 @@ target_include_directories(
31
31
target_compile_features (tomlplusplus_tomlplusplus INTERFACE cxx_std_17)
32
32
33
33
# ---- Install rules, examples, and fuzzing ----
34
- if (PROJECT_IS_TOP_LEVEL )
34
+ if (tomlplusplus_INSTALL )
35
35
include (cmake/install -rules.cmake)
36
+ endif ()
37
+
38
+ if (PROJECT_IS_TOP_LEVEL)
36
39
option (BUILD_EXAMPLES "Build examples tree." OFF )
37
40
option (BUILD_FUZZER "Build fuzzer." OFF )
38
41
if (BUILD_EXAMPLES)
Original file line number Diff line number Diff line change 5
5
# This is to provide a user experience similar to find_package when
6
6
# add_subdirectory or FetchContent is used to consume this project
7
7
set (tomlplusplus_warning_guard "" )
8
+ option (tomlplusplus_INSTALL "Enable generation of tomlplusplus install targets" ${PROJECT_IS_TOP_LEVEL} )
8
9
if (NOT PROJECT_IS_TOP_LEVEL)
9
10
option (
10
11
tomlplusplus_INCLUDES_WITH_SYSTEM
You can’t perform that action at this time.
0 commit comments