mirror of
https://github.com/status-im/evmc.git
synced 2025-02-23 08:28:15 +00:00
Upgrade Cable to 0.2.11
Merge commit '92e7165fa9f164ec9b4f2ca896f5d4ef7e0bd5fd' into cmake # Conflicts: # cmake/cable/bootstrap.cmake
This commit is contained in:
commit
df81379b3d
@ -77,13 +77,12 @@ function(cable_add_buildinfo_library)
|
|||||||
|
|
||||||
# Add buildinfo library under given name.
|
# Add buildinfo library under given name.
|
||||||
# Make is static and do not build by default until some other target will actually use it.
|
# Make is static and do not build by default until some other target will actually use it.
|
||||||
add_library(${name} STATIC EXCLUDE_FROM_ALL ${source_file} ${header_file})
|
add_library(${name} STATIC ${source_file} ${header_file})
|
||||||
|
|
||||||
target_include_directories(${name} PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|
target_include_directories(${name} PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
|
||||||
set_target_properties(
|
set_target_properties(
|
||||||
${name} PROPERTIES
|
${name} PROPERTIES
|
||||||
LIBRARY_OUTPUT_DIRECTORY ${output_dir}
|
LIBRARY_OUTPUT_DIRECTORY ${output_dir}
|
||||||
ARCHIVE_OUTPUT_DIRECTORY ${output_dir}
|
ARCHIVE_OUTPUT_DIRECTORY ${output_dir}
|
||||||
OUTPUT_NAME buildinfo
|
|
||||||
)
|
)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
#
|
#
|
||||||
# This is internal variable automaticaly updated with external tools.
|
# This is internal variable automaticaly updated with external tools.
|
||||||
# Use CABLE_VERSION variable if you need this information.
|
# Use CABLE_VERSION variable if you need this information.
|
||||||
set(version 0.2.9)
|
set(version 0.2.11)
|
||||||
|
|
||||||
# For conveniance, add the project CMake module dir to module path.
|
# For conveniance, add the project CMake module dir to module path.
|
||||||
set(module_dir ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
set(module_dir ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
# Copyright 2018 Pawel Bylica.
|
# Copyright 2018 Pawel Bylica.
|
||||||
# Licensed under the Apache License, Version 2.0. See the LICENSE file.
|
# Licensed under the Apache License, Version 2.0. See the LICENSE file.
|
||||||
|
|
||||||
string(TOLOWER ${SYSTEM_NAME} SYSTEM_NAME)
|
string(TOLOWER "${SYSTEM_NAME}" SYSTEM_NAME)
|
||||||
string(TOLOWER ${SYSTEM_PROCESSOR} SYSTEM_PROCESSOR)
|
string(TOLOWER "${SYSTEM_PROCESSOR}" SYSTEM_PROCESSOR)
|
||||||
string(TOLOWER ${COMPILER_ID} COMPILER_ID)
|
string(TOLOWER "${COMPILER_ID}" COMPILER_ID)
|
||||||
string(TOLOWER ${BUILD_TYPE} BUILD_TYPE)
|
string(TOLOWER "${BUILD_TYPE}" BUILD_TYPE)
|
||||||
string(TIMESTAMP TIMESTAMP)
|
string(TIMESTAMP TIMESTAMP)
|
||||||
|
|
||||||
# Read the git info from a file. The gitinfo is suppose to update the file
|
# Read the git info from a file. The gitinfo is suppose to update the file
|
||||||
@ -45,7 +45,11 @@ if(GIT_COMMIT_HASH)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(${PROJECT_VERSION} STREQUAL "${GIT_LATEST_PROJECT_VERSION}")
|
if(NOT PROJECT_VERSION)
|
||||||
|
message(WARNING "PROJECT_VERSION not specified")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if(PROJECT_VERSION STREQUAL GIT_LATEST_PROJECT_VERSION)
|
||||||
if(${GIT_LATEST_PROJECT_VERSION_DISTANCE} GREATER 0)
|
if(${GIT_LATEST_PROJECT_VERSION_DISTANCE} GREATER 0)
|
||||||
set(PROJECT_VERSION "${PROJECT_VERSION}-${GIT_LATEST_PROJECT_VERSION_DISTANCE}${version_commit}")
|
set(PROJECT_VERSION "${PROJECT_VERSION}-${GIT_LATEST_PROJECT_VERSION_DISTANCE}${version_commit}")
|
||||||
endif()
|
endif()
|
||||||
|
12
cmake/cable/toolchains/cxx11-fpic.cmake
Normal file
12
cmake/cable/toolchains/cxx11-fpic.cmake
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# Cable: CMake Bootstrap Library.
|
||||||
|
# Copyright 2018 Pawel Bylica.
|
||||||
|
# Licensed under the Apache License, Version 2.0. See the LICENSE file.
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||||||
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||||
|
|
||||||
|
set(CMAKE_CXX_FLAGS_INIT "-fPIC" CACHE STRING "" FORCE)
|
||||||
|
set(CMAKE_C_FLAGS_INIT "-fPIC" CACHE STRING "" FORCE)
|
9
cmake/cable/toolchains/cxx11-pic.cmake
Normal file
9
cmake/cable/toolchains/cxx11-pic.cmake
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# Cable: CMake Bootstrap Library.
|
||||||
|
# Copyright 2018 Pawel Bylica.
|
||||||
|
# Licensed under the Apache License, Version 2.0. See the LICENSE file.
|
||||||
|
|
||||||
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
||||||
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
|
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
Loading…
x
Reference in New Issue
Block a user