Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Minor fix on CMakeLists.txt #4

Open
wants to merge 1 commit into from

1 participant

@hatsuseno

FIXME block fixed, check void pointer size for bit depth on the architecture.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 9, 2012
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 4 deletions.
  1. +6 −4 CMakeLists.txt
View
10 CMakeLists.txt
@@ -2,15 +2,17 @@ cmake_minimum_required(VERSION 2.6)
project(HammerJS)
-# FIXME: this should detect 64-bit vs 32-bit architecture instead
+if(CMAKE_SIZEOF_VOID_P MATCHES "8")
+ set(HAMMERJS_ARCH "x64")
+else()
+ set(HAMMERJS_ARCH "ia32")
+endif()
+
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
- set(HAMMERJS_ARCH "x64")
add_definitions(-mmacosx-version-min=10.5)
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -mmacosx-version-min=10.5")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -mmacosx-version-min=10.5")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -mmacosx-version-min=10.5")
-else()
- set(HAMMERJS_ARCH "ia32")
endif()
add_subdirectory(v8)
Something went wrong with that request. Please try again.