mirror of
https://github.com/status-im/evmc.git
synced 2025-02-24 00:48:09 +00:00
5fd6d89 Add powerpc64 toolchain file bd3d25d Add README 1a3081d Add correct project modules dir to CMake path 34d7914 Add cable_log() and cable_debug() f0fe702 Fix gitinfo when git describe fails to find any version tag 4c742d9 gitinfo: Extend with git describe 28c3d66 cable_configure_compiler: Add option to disable stack protection git-subtree-dir: cmake/cable git-subtree-split: 5fd6d89e7ed8f5e32c8e32168207dcf4f09b714d
25 lines
863 B
CMake
25 lines
863 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 powerpc64)
|
|
set(CMAKE_SYSTEM_NAME Linux)
|
|
set(CMAKE_C_COMPILER powerpc64-linux-gnu-gcc)
|
|
set(CMAKE_CXX_COMPILER powerpc64-linux-gnu-g++)
|
|
|
|
set(CMAKE_FIND_ROOT_PATH /usr/powerpc64-linux-gnu)
|
|
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()
|