Skip to content

Commit

Permalink
Move install rules under PROJECT_IS_TOP_LEVEL (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shatur authored May 18, 2022
1 parent 39b80f6 commit b75212c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b75212c

Please sign in to comment.