Skip to content

Commit f8bfb74

Browse files
committed
Merge pull request #120 from tpaviot/review/mingw64
Mingw64 compilation fix
2 parents 4d36035 + 9aef6c8 commit f8bfb74

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)