CMake: Set SWIG word size based on architecture

Fixes #906.
This commit is contained in:
Rémi Verschelde
2018-03-09 12:14:11 +01:00
committed by Baldur Karlsson
parent ad0678a886
commit 4a5393b41e
+5 -1
View File
@@ -16,7 +16,11 @@ if(STATIC_QRENDERDOC)
endif()
if(NOT APPLE)
set(SWIG_FLAGS "-DSWIGWORDSIZE64")
if(CMAKE_SIZEOF_VOID_P EQUAL 8) # 64-bit
set(SWIG_FLAGS "-DSWIGWORDSIZE64")
else() # 32-bit
set(SWIG_FLAGS "-DSWIGWORDSIZE32")
endif()
endif()
if(QRENDERDOC_NO_CXX11_REGEX)