Skip to content

Commit

Permalink
Make tests conditional on BUILD_TESTING (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
yurivict authored Jan 17, 2024
1 parent 96e353f commit 26725ac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ if(LIBPOLY_BUILD_PYTHON_API)

endif()

# Configure the C++ tests
enable_testing()
add_subdirectory(test/polyxx)
if (BUILD_TESTING)
# Configure the C++ tests
enable_testing()
add_subdirectory(test/polyxx)
endif()

0 comments on commit 26725ac

Please sign in to comment.