fix: PYBIND11_MASTER_PROJECT always ON (#2412)

This commit is contained in:
Henry Schreiner 2020-08-19 16:49:08 -04:00 committed by GitHub
parent 04fdc44f50
commit 24dffe46af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ if(NOT pybind11_FIND_QUIETLY)
endif()
# Check if pybind11 is being used directly or via add_subdirectory
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
### Warn if not an out-of-source builds
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
set(lines