We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04fdc44 commit 24dffe4Copy full SHA for 24dffe4
CMakeLists.txt
@@ -46,7 +46,7 @@ if(NOT pybind11_FIND_QUIETLY)
46
endif()
47
48
# Check if pybind11 is being used directly or via add_subdirectory
49
-if(CMAKE_CURRENT_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
+if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
50
### Warn if not an out-of-source builds
51
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
52
set(lines
0 commit comments