fix(build): support conan's multiple includes of all files (#3420)

This commit is contained in:
Henry Schreiner
2021-10-27 15:06:02 -04:00
committed by GitHub
parent e7e2c79f3f
commit 90707b46f2
3 changed files with 12 additions and 4 deletions

View File

@@ -20,6 +20,7 @@ Adds the following functions::
#]======================================================]
# CMake 3.10 has an include_guard command, but we can't use that yet
# include_guard(global) (pre-CMake 3.10)
if(TARGET pybind11::lto)
return()
endif()