Skip to content

Commit

Permalink
Don't build examples when being included in other projects.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Jul 15, 2024
1 parent 14ef9cb commit 88c3e64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ install(EXPORT igraph-cpp-targets
NAMESPACE igraph::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/igraph-cpp)

add_subdirectory(examples)
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
add_subdirectory(examples)
endif()

0 comments on commit 88c3e64

Please sign in to comment.