We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pybind11_DIR
1 parent 70798e7 commit 018d358Copy full SHA for 018d358
1 file changed
CMakeLists.txt
@@ -65,7 +65,7 @@ if(MSVC)
65
APPEND CMAKE_CXX_FLAGS
66
" /EHsc /bigobj"
67
" /Zc:preprocessor"
68
- " /experimental:external /external:anglebrackets /external:W0"
+ " /experimental:external /external:anglebrackets /external:env:pybind11_DIR /external:W0"
69
" /Wall /Wv:19.40" # Visual Studio 2022 version 17.10
70
# Suppress following warnings
71
" /wd4127" # conditional expression is constant
@@ -251,6 +251,7 @@ else()
251
list(PREPEND CMAKE_PREFIX_PATH "${pybind11_DIR}")
252
find_package(pybind11 "${pybind11_MINIMUM_VERSION}" CONFIG REQUIRED)
253
endif()
254
+set(ENV{pybind11_DIR} "${pybind11_DIR}")
255
256
set(SETUPTOOLS_EXT_SUFFIX "$ENV{SETUPTOOLS_EXT_SUFFIX}")
257
if(SETUPTOOLS_EXT_SUFFIX)
0 commit comments