Skip to content

Commit 9aef6c8

Browse files
committed
Fixed Mingw64 compilation
1 parent 4d36035 commit 9aef6c8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ if ((NOT MSVC) OR (CMAKE_BUILD_TOOL STREQUAL "nmake"))
6969
immutable" FORCE )
7070
endif((NOT MSVC) OR (CMAKE_BUILD_TOOL STREQUAL "nmake"))
7171

72+
# Mingw64 needs MS_WIN64 to be defined (otherwise link failures)
73+
if(MINGW)
74+
message(STATUS "MinGW:")
75+
if(BIT MATCHES "64")
76+
add_definitions(-DMS_WIN64)
77+
endif(BIT MATCHES "64")
78+
endif(MINGW)
79+
7280
########
7381
# SWIG #
7482
########

0 commit comments

Comments
 (0)