Better error when TC is full
[hiphop-php.git] / CMakeLists.txt
blobce29bee3f78aa2df3526137c44f8d0c98ac2cc0c
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.7 FATAL_ERROR)
2 PROJECT(hphp C CXX ASM)
4 IF(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
5   message(FATAL_ERROR "HHVM requires a 64bit OS")
6 ENDIF()
8 SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})
10 if (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/third-party/CMakeLists.txt")
11   message(FATAL_ERROR "third-party/CMakeLists.txt missing."
12                       "Try updating your submodule with:
13 rm -r third-party
14 git submodule update --init --recursive
16 endif()
18 include("${CMAKE_CURRENT_SOURCE_DIR}/CMake/HPHPFunctions.cmake")
19 include(CheckFunctionExists)
21 set(HPHP_HOME ${CMAKE_CURRENT_SOURCE_DIR})
22 set(TP_DIR "${CMAKE_CURRENT_SOURCE_DIR}/third-party")
24 add_subdirectory(third-party)
25 add_subdirectory(hphp)