Skip to content

Commit 1e5afe2

Browse files
committed
Attempt to fix Windows build
1 parent d805a86 commit 1e5afe2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,8 @@ FetchContent_MakeAvailable(fpcap)
3232
pybind11_add_module(_fpcap src/bindings.cpp)
3333
target_link_libraries(_fpcap PRIVATE fpcap::fpcap)
3434

35+
# Disable MSVC C++20 module scanning (we don't use C++ modules and the scanner
36+
# fails on Windows because it lacks platform architecture defines)
37+
set_target_properties(_fpcap PROPERTIES CXX_SCAN_FOR_MODULES OFF)
38+
3539
install(TARGETS _fpcap LIBRARY DESTINATION .)

0 commit comments

Comments
 (0)