mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 13:15:12 +00:00
fix: PYBIND11_MASTER_PROJECT always ON (#2412)
This commit is contained in:
parent
04fdc44f50
commit
24dffe46af
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user