Attempt to workaround for older cmake versions.

This commit is contained in:
Daniel Kirchner
2019-06-06 16:16:55 +02:00
parent f21d5ab839
commit 5370af50e3
+5
View File
@@ -13,6 +13,11 @@ 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)