Skip to content

Commit

Permalink
fix: PYBIND11_MASTER_PROJECT always ON (pybind#2412)
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Aug 19, 2020
1 parent 04fdc44 commit 24dffe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24dffe4

Please sign in to comment.