Commit 24dffe46 by Henry Schreiner Committed by GitHub

fix: PYBIND11_MASTER_PROJECT always ON (#2412)

parent 04fdc44f
...@@ -46,7 +46,7 @@ if(NOT pybind11_FIND_QUIETLY) ...@@ -46,7 +46,7 @@ if(NOT pybind11_FIND_QUIETLY)
endif() endif()
# Check if pybind11 is being used directly or via add_subdirectory # 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 ### Warn if not an out-of-source builds
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR) if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
set(lines set(lines
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment