We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e24ce5c commit f97ad4bCopy full SHA for f97ad4b
1 file changed
share/cmake/modules/Findpybind11.cmake
@@ -140,5 +140,14 @@ if(_pybind11_TARGET_CREATE)
140
INTERFACE_INCLUDE_DIRECTORIES ${pybind11_INCLUDE_DIR}
141
)
142
143
+ # /bigobj is needed for bigger binding projects due to the limit to 64k
144
+ # addressable sections (see pybind11Common.cmake).
145
+ if (MSVC)
146
+ set_target_properties(pybind11::module PROPERTIES
147
+ INTERFACE_COMPILE_OPTIONS /bigobj
148
+ )
149
+
150
+ endif()
151
152
mark_as_advanced(pybind11_INCLUDE_DIR pybind11_VERSION)
153
endif()
0 commit comments