Skip to content

Commit 018d358

Browse files
committed
chore: ignore warnings from pybind11_DIR
1 parent 70798e7 commit 018d358

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ if(MSVC)
6565
APPEND CMAKE_CXX_FLAGS
6666
" /EHsc /bigobj"
6767
" /Zc:preprocessor"
68-
" /experimental:external /external:anglebrackets /external:W0"
68+
" /experimental:external /external:anglebrackets /external:env:pybind11_DIR /external:W0"
6969
" /Wall /Wv:19.40" # Visual Studio 2022 version 17.10
7070
# Suppress following warnings
7171
" /wd4127" # conditional expression is constant
@@ -251,6 +251,7 @@ else()
251251
list(PREPEND CMAKE_PREFIX_PATH "${pybind11_DIR}")
252252
find_package(pybind11 "${pybind11_MINIMUM_VERSION}" CONFIG REQUIRED)
253253
endif()
254+
set(ENV{pybind11_DIR} "${pybind11_DIR}")
254255

255256
set(SETUPTOOLS_EXT_SUFFIX "$ENV{SETUPTOOLS_EXT_SUFFIX}")
256257
if(SETUPTOOLS_EXT_SUFFIX)

0 commit comments

Comments
 (0)