mirror of
https://github.com/status-im/evmc.git
synced 2025-02-24 00:48:09 +00:00
caeabb3 CableBuildInfo: Specify gitinfo.txt byproduct 69a5abc CableBuildInfo: Remove broken debug logs a5a1829 CableCompilerSettings: Enabled conversion warnings by default 0790aec README: Add section about git subtree 4056c71 Add the project name to every file 612d1b2 Add cxx11-c99 toolchain file git-subtree-dir: cmake/cable git-subtree-split: caeabb3a9f054f5c0b5076aa958968c42f7a5df4
25 lines
866 B
CMake
25 lines
866 B
CMake
# Cable: CMake Bootstrap Library.
|
|
# Copyright 2018 Pawel Bylica.
|
|
# Licensed under the Apache License, Version 2.0. See the LICENSE file.
|
|
|
|
set(CMAKE_SYSTEM_PROCESSOR mips64)
|
|
set(CMAKE_SYSTEM_NAME Linux)
|
|
set(CMAKE_C_COMPILER mips64-linux-gnuabi64-gcc)
|
|
set(CMAKE_CXX_COMPILER mips64-linux-gnuabi64-g++)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH /usr/mips64-linux-gnuabi64)
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
|
|
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
|
set(CMAKE_CXX_EXTENSIONS Off)
|
|
|
|
if(${CMAKE_VERSION} VERSION_LESS 3.10.0)
|
|
# Until CMake 3.10 the FindThreads uses try_run() check of -pthread flag,
|
|
# what causes CMake error in crosscompiling mode. Avoid the try_run() check
|
|
# by specifying the result up front.
|
|
set(THREADS_PTHREAD_ARG TRUE)
|
|
endif()
|