Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Implement Mac 64 bit build option.

  • Loading branch information...
commit d1e05a4d10320228fa8553e423fd0e2890026652 1 parent 3838246
David Register authored
Showing with 14 additions and 0 deletions.
  1. +5 −0 CMakeLists.txt
  2. +9 −0 build_mac_64.sh
View
5 CMakeLists.txt
@@ -84,6 +84,11 @@ IF (NOT WIN32)
SET (LIB_INSTALL_DIR "lib")
ENDIF (CMAKE_SIZEOF_VOID_P MATCHES "8")
ENDIF (EXISTS /etc/suse-release OR EXISTS /etc/SuSE-release)
+ IF(APPLE)
+ IF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ SET(ARCH "x86_64")
+ ENDIF (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ ENDIF()
ELSE (NOT WIN32)
# On WIN32 probably CMAKE_SIZEOF_VOID_P EQUAL 8, but we don't use it at all now...
SET (ARCH "i386")
View
9 build_mac_64.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+#
+#
+if [[ ! -d build_osx ]];then
+ mkdir build_osx
+fi
+cd build_osx
+CC=`wx-config --cc` CXX=`wx-config --cxx` cmake .. && make
+#cmake -DCMAKE_OSX_ARCHITECTURES=i386 .. && make
Please sign in to comment.
Something went wrong with that request. Please try again.