Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions share/cmake/modules/Findpybind11.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,14 @@ if(_pybind11_TARGET_CREATE)
INTERFACE_INCLUDE_DIRECTORIES ${pybind11_INCLUDE_DIR}
)

# /bigobj is needed for bigger binding projects due to the limit to 64k
# addressable sections (see pybind11Common.cmake).
if (MSVC)
set_target_properties(pybind11::module PROPERTIES
INTERFACE_COMPILE_OPTIONS /bigobj
)

endif()

mark_as_advanced(pybind11_INCLUDE_DIR pybind11_VERSION)
endif()