Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 32 lines (22 sloc) 0.892 kb
5078d0b @scottmac Force CMake 2.6.4 as the minimum version
scottmac authored
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.6.4 FATAL_ERROR)
c3f1ab2 Changes reqiured to open source HipHop
Scott MacVicar authored
2 PROJECT(hphp C CXX)
3
4 IF("$ENV{HPHP_HOME}" STREQUAL "")
5 message(FATAL_ERROR "You should set the HPHP_HOME environmental")
6 ENDIF()
7
8 file(TO_CMAKE_PATH "$ENV{HPHP_HOME}" HPHP_HOME)
9
fe93f1d @scottmac Add directory exists check so we verify HPHP_HOME is valid.
scottmac authored
10 IF(NOT IS_DIRECTORY ${HPHP_HOME})
11 message(FATAL_ERROR "The value of HPHP_HOME does not exist")
12 ENDIF()
13
f9d78f9 @scottmac Update CMake with a better detection of invalid HPHP_HOME variables
scottmac authored
14 IF(NOT EXISTS "${HPHP_HOME}/LICENSE.PHP")
15 message(FATAL_ERROR "The value of HPHP_HOME in incorrect")
16 ENDIF()
17
fde79c2 @scottmac Fix building outside of the standard directory
scottmac authored
18 SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})
c3f1ab2 Changes reqiured to open source HipHop
Scott MacVicar authored
19
fde79c2 @scottmac Fix building outside of the standard directory
scottmac authored
20 include("${CMAKE_CURRENT_SOURCE_DIR}/CMake/HPHPFunctions.cmake")
c3f1ab2 Changes reqiured to open source HipHop
Scott MacVicar authored
21 include(CheckFunctionExists)
22
23 add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src)
24
e1043d4 @scottmac Enable full 32-bit support
scottmac authored
25 IF(CMAKE_SIZEOF_VOID_P EQUAL 4)
92b1b1d @sgolemon 32bit builds are broken for the foreseeable future.
sgolemon authored
26 message(FATAL_ERROR "32-bit support is currently unsupported, check back with a later version of HipHop")
e1043d4 @scottmac Enable full 32-bit support
scottmac authored
27 ENDIF()
dcd7a28 @joelpob Updated to the latest bits, fixed the cmake scripts so that hhvm compile...
joelpob authored
28
29 IF ("$ENV{USE_HHVM}" STREQUAL "1")
30 message("USE_HHVM is set")
31 ENDIF()
Something went wrong with that request. Please try again.