mirror of
https://github.com/marzer/tomlplusplus.git
synced 2024-10-06 06:49:43 +00:00
Move install rules under PROJECT_IS_TOP_LEVEL (#154)
This commit is contained in:
parent
39b80f6c56
commit
b75212c5dd
@ -30,13 +30,9 @@ target_include_directories(
|
||||
|
||||
target_compile_features(tomlplusplus_tomlplusplus INTERFACE cxx_std_17)
|
||||
|
||||
# ---- Install rules ----
|
||||
|
||||
include(cmake/install-rules.cmake)
|
||||
|
||||
# ---- Examples ----
|
||||
|
||||
# ---- Install rules and examples ----
|
||||
if(PROJECT_IS_TOP_LEVEL)
|
||||
include(cmake/install-rules.cmake)
|
||||
option(BUILD_EXAMPLES "Build examples tree." OFF)
|
||||
if(BUILD_EXAMPLES)
|
||||
add_subdirectory(examples)
|
||||
|
Loading…
Reference in New Issue
Block a user