cmake: Expose `PYBIND11_TEST_OVERRIDE` (#2218)

Primarily for the ccmake curses GUI
This commit is contained in:
Eric Cousineau 2020-05-31 01:00:55 -04:00 committed by GitHub
parent a3118130c6
commit 2c30e0a118
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -8,6 +8,7 @@
cmake_minimum_required(VERSION 2.8.12)
option(PYBIND11_WERROR "Report all warnings as errors" OFF)
set(PYBIND11_TEST_OVERRIDE "" CACHE STRING "Tests from ;-separated list of *.cpp files will be built instead of all tests")
if (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
# We're being loaded directly, i.e. not via add_subdirectory, so make this