Skip to content

Commit 89c3561

Browse files
authored
Fix multi-context new Python linking mode (pybind#4401)
Allow CMake find_package() from multiple directories. pybind#4400 Co-authored-by: Martin Blanchard <[email protected]>
1 parent ff42f52 commit 89c3561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pybind11NewTools.cmake

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if(CMAKE_VERSION VERSION_LESS 3.12)
99
message(FATAL_ERROR "You cannot use the new FindPython module with CMake < 3.12")
1010
endif()
1111

12-
include_guard(GLOBAL)
12+
include_guard(DIRECTORY)
1313

1414
get_property(
1515
is_config

0 commit comments

Comments
 (0)