Skip to content

Commit

Permalink
Merge pull request #4 from oxen-io/cmake-as-submodule
Browse files Browse the repository at this point in the history
make CMakeLists work using this as a submodule/dependency
  • Loading branch information
majestrate committed Nov 25, 2021
2 parents f9efc55 + d465bde commit a0912ab
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

option(WITH_DOCS "build documentation" ON)
option(WITH_TESTS "build tests" ON)

include(GNUInstallDirs)

Expand Down Expand Up @@ -90,10 +89,10 @@ if(OXENC_INSTALL)
endif()


if(WITH_DOCS)
if(WITH_DOCS AND ${oxenc_IS_TOPLEVEL_PROJECT})
add_subdirectory(docs)
endif()

if(WITH_TESTS)
if(OXENC_BUILD_TESTS)
add_subdirectory(tests)
endif()

0 comments on commit a0912ab

Please sign in to comment.