Skip to content

Commit 15c5599

Browse files
Check for 64bit arch
1 parent ac23ad1 commit 15c5599

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,14 @@ endif()
273273
#
274274

275275
# needed for windows NSIS installer
276+
if (CMAKE_SIZEOF_VOID_P MATCHES "8")
277+
set(ARCH64 1)
278+
set(ARCHSUFFIX "64")
279+
else()
280+
set(ARCH64 0)
281+
set(ARCHSUFFIX "")
282+
endif()
283+
276284
file(TO_NATIVE_PATH ${PROJECT_SOURCE_DIR} PROJECT_SOURCE_DIR_NATIVE)
277285
file(TO_NATIVE_PATH ${PROJECT_BINARY_DIR} PROJECT_BINARY_DIR_NATIVE)
278286
string(REPLACE "\\" "\\\\" PROJECT_SOURCE_DIR_NATIVE_D ${PROJECT_SOURCE_DIR_NATIVE})

0 commit comments

Comments
 (0)