allow to cross-compile 32 and 64 bit dlls using MinGW

This commit is contained in:
Christoph Gritschenberger 2017-01-26 15:11:12 +01:00
parent 45ff2ddf19
commit 4903258749
2 changed files with 16 additions and 1 deletions

View file

@ -26,7 +26,7 @@ ENDIF(WIN32)
include_directories(${CMAKE_CURRENT_BINARY_DIR}/include/)
add_definitions("-DHAVE_CONFIG_H")
if(MINGW)
if(MINGW AND CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
# force MinGW-w64 in 32bit mode
add_definitions("-m32")
add_definitions("-DNOCRYPT")