Skip to content

Commit 312ba20

Browse files
committed
fix win cmake flags for swig
1 parent cd83040 commit 312ba20

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ if(UNIX AND NOT APPLE)
188188
else()
189189
list(APPEND CMAKE_SWIG_FLAGS -DSWIGWORDSIZE32)
190190
endif()
191+
elseif(WIN32)
192+
# Also define _WIN32 for the genicam.i file
193+
list(APPEND CMAKE_SWIG_FLAGS -D_WIN32)
191194
endif()
192195

193196
# Function to create a SWIG Python module

0 commit comments

Comments
 (0)