Skip to content

Commit e71489c

Browse files
authored
tests: avoid false DOWNLOAD_CATCH manually-specified variables warning (#5803)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 8bbc309 commit e71489c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ project(pybind11_tests CXX)
6767
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/../tools")
6868

6969
option(PYBIND11_WERROR "Report all warnings as errors" OFF)
70+
option(DOWNLOAD_CATCH "Download catch2 if not found" OFF)
7071
option(DOWNLOAD_EIGEN "Download EIGEN" OFF)
7172
option(PYBIND11_CUDA_TESTS "Enable building CUDA tests" OFF)
7273
option(PYBIND11_TEST_SMART_HOLDER "Change the default to smart holder" OFF)

tools/FindCatch.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
# CATCH_INCLUDE_DIR - path to catch.hpp
1010
# CATCH_VERSION - version number
1111

12-
option(DOWNLOAD_CATCH "Download catch2 if not found")
13-
1412
if(NOT Catch_FIND_VERSION)
1513
message(FATAL_ERROR "A version number must be specified.")
1614
elseif(Catch_FIND_REQUIRED)

0 commit comments

Comments
 (0)