Skip to content

Instantly share code, notes, and snippets.

@aseques
Created May 11, 2012 22:52
Show Gist options
  • Select an option

  • Save aseques/2662935 to your computer and use it in GitHub Desktop.

Select an option

Save aseques/2662935 to your computer and use it in GitHub Desktop.
Marble compilation on x86_64
--- a/CMakeLists.txt 2012-05-12 15:05:14.000000000 +0200
+++ b/CMakeLists.txt 2012-05-12 15:05:21.000000000 +0200
@@ -155,8 +155,9 @@
SET( MACOSX_BUNDLE_VERSION 0.3.0 )
SET( MACOSX_BUNDLE_LONG_VERSION_STRING Version 0.3.0 )
SET( MACOSX_BUNDLE_BUNDLE_NAME Marble)
- #SET( CMAKE_OSX_ARCHITECTURES ppc;i386 ) #Comment out if not universal binary
- SET( CMAKE_OSX_ARCHITECTURES i386 ) #Comment out if universal binary
+ if (MACOSX_UNIVERSAL)
+ SET( CMAKE_OSX_ARCHITECTURES ppc;i386 ) #Comment out if not universal binary
+ endif(MACOSX_UNIVERSAL)
#SET (lib_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/lib)
SET (data_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/resources/data)
SET (plugin_dir ${CMAKE_INSTALL_PREFIX}/Marble.app/Contents/MacOS/resources/plugins)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment