Skip to content

Commit 89c3561

Browse files
authored
Fix multi-context new Python linking mode (#4401)
Allow CMake find_package() from multiple directories. #4400 Co-authored-by: Martin Blanchard <martin.blanchard@siemens.com>
1 parent ff42f52 commit 89c3561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/pybind11NewTools.cmake

Lines changed: 1 addition & 1 deletion
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)