feat update version
Some checks failed
linux-x64-gcc / linux-gcc (Release) (push) Waiting to run
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 6m41s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 7m20s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 8m12s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 9m37s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 5m55s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 7m42s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 9m17s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 9m7s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 5m28s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 8m22s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 5m7s
linux-x86-gcc / linux-gcc (Debug) (push) Failing after 56s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Failing after 9m55s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Failing after 8m2s
linux-x86-gcc / linux-gcc (Release) (push) Failing after 1m5s
Some checks failed
linux-x64-gcc / linux-gcc (Release) (push) Waiting to run
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 6m41s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 7m20s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 8m12s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 9m37s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 5m55s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 7m42s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 9m17s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 9m7s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 5m28s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 8m22s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 5m7s
linux-x86-gcc / linux-gcc (Debug) (push) Failing after 56s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Failing after 9m55s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Failing after 8m2s
linux-x86-gcc / linux-gcc (Release) (push) Failing after 1m5s
This commit is contained in:
parent
13f2838375
commit
f9c0e90b06
@ -1,4 +1,4 @@
|
||||
cmake_minimum_required(VERSION 3.12)
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
set(tile_VERSION_MAJOR 0)
|
||||
set(tile_VERSION_MINOR 1)
|
||||
@ -21,6 +21,11 @@ option(TILE_WITH_OPENSSL "Build with openssl" OFF)
|
||||
option(TILE_BUILD_SHARED "Build shared library" ON)
|
||||
option(TILE_BUILD_STATIC "Build static library" ON)
|
||||
|
||||
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_PROJECT_DIR)
|
||||
set(TILE_BUILD_TESTS ON)
|
||||
set(TILE_BUILD_BENCHMARKS ON)
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE "Debug")
|
||||
endif()
|
||||
@ -54,8 +59,6 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set(WHOLE_ARCHIVE_SUFFIX "-Wl,--no-whole-archive")
|
||||
endif()
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
|
||||
# extern int getifaddrs(struct ifaddrs **ifap); extern void freeifaddrs(struct
|
||||
# ifaddrs *ifa);
|
||||
include(CheckSymbolExists)
|
||||
@ -218,14 +221,9 @@ target_include_directories(
|
||||
target_link_libraries(
|
||||
tile
|
||||
PUBLIC # -Wl,--start-group
|
||||
nova_context
|
||||
zlib
|
||||
gflags::gflags
|
||||
glog::glog
|
||||
nova_context zlib gflags::gflags glog::glog
|
||||
# -Wl,--end-group
|
||||
libcurl
|
||||
fmt
|
||||
Threads::Threads)
|
||||
libcurl fmt)
|
||||
if((CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64") OR (CMAKE_SYSTEM_PROCESSOR MATCHES
|
||||
"mips*"))
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
|
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
services:
|
||||
build-env:
|
||||
image: ubuntu:16.04
|
||||
restart: always
|
||||
container_name: "env"
|
||||
command: ["/bin/bash", "-c", "sleep 36000"]
|
||||
volumes:
|
||||
- ./:/workspace
|
15
third_party/zlib/CMakeLists.txt
vendored
15
third_party/zlib/CMakeLists.txt
vendored
@ -1,8 +1,15 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(zlib VERSION 1.3.1.1 LANGUAGES C)
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
project(
|
||||
zlib
|
||||
VERSION 1.3.1.1
|
||||
LANGUAGES C)
|
||||
file(GLOB SRC_FILES "${CMAKE_CURRENT_SOURCE_DIR}/zlib/*.c")
|
||||
|
||||
add_library(zlib STATIC ${SRC_FILES})
|
||||
target_include_directories(zlib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_include_directories(zlib PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/zlib)
|
||||
add_library(ZLIB::ZLIB ALIAS zlib)
|
||||
install(TARGETS zlib EXPORT zlib)
|
||||
install(
|
||||
TARGETS zlib
|
||||
EXPORT zlib
|
||||
DESTINATION lib)
|
||||
|
Loading…
x
Reference in New Issue
Block a user