Skip to content

Commit 24dffe4

Browse files
authored
fix: PYBIND11_MASTER_PROJECT always ON (#2412)
1 parent 04fdc44 commit 24dffe4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if(NOT pybind11_FIND_QUIETLY)
4646
endif()
4747

4848
# Check if pybind11 is being used directly or via add_subdirectory
49-
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
49+
if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
5050
### Warn if not an out-of-source builds
5151
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
5252
set(lines

0 commit comments

Comments
 (0)