diff --git a/CMakeLists.txt b/CMakeLists.txt index e8d729f15..64433978e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,17 @@ eth_policy() set(PROJECT_VERSION "0.5.10") project(solidity VERSION ${PROJECT_VERSION} LANGUAGES CXX) +if (${CMAKE_VERSION} VERSION_LESS "3.9.0") + # needed for the big endian test for older cmake versions + enable_language(C) +endif() + +include(TestBigEndian) +TEST_BIG_ENDIAN(IS_BIG_ENDIAN) +if (IS_BIG_ENDIAN) + message(FATAL_ERROR "${PROJECT_NAME} currently does not support big endian systems.") +endif() + option(LLL "Build LLL" OFF) option(SOLC_LINK_STATIC "Link solc executable statically on supported platforms" OFF) option(LLLC_LINK_STATIC "Link lllc executable statically on supported platforms" OFF)