This repository was archived by the owner on Dec 1, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +35
-13
lines changed
Expand file tree Collapse file tree 4 files changed +35
-13
lines changed Original file line number Diff line number Diff line change 1- sudo : false
21language : cpp
2+ dist : bionic
3+ os : linux
34
4- matrix :
5+ jobs :
56 include :
7+ # GCC 10 C++17
8+ - compiler : gcc
9+ env :
10+ - MATRIX_EVAL="COMPILER=g++-10 && CXX=g++-10 && CXX_STANDARD=17"
11+ addons :
12+ apt :
13+ packages : libcrypto++-dev g++-10
14+ sources : &sources
15+ - ubuntu-toolchain-r-test
616 # GCC 7 C++17
7- - os : linux
8- compiler : gcc
17+ - compiler : gcc
918 env :
1019 - MATRIX_EVAL="COMPILER=g++-7 && CXX=g++-7 && CXX_STANDARD=17"
1120 addons :
@@ -14,8 +23,7 @@ matrix:
1423 sources : &sources
1524 - ubuntu-toolchain-r-test
1625 # GCC 5 C++14
17- - os : linux
18- compiler : gcc
26+ - compiler : gcc
1927 env :
2028 - MATRIX_EVAL="COMPILER=g++-5 && CXX=g++-5 && CXX_STANDARD=14"
2129 addons :
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ find_package(Threads REQUIRED)
3333
3434find_package (Asio 1.12.0 REQUIRED MODULE)
3535find_package (JSON 3.1.2 REQUIRED MODULE)
36- find_package (Spdlog 0.16.4 REQUIRED MODULE)
36+ find_package (Spdlog 1.6.0 REQUIRED MODULE)
3737find_package (Websocketpp 0.7.0 REQUIRED MODULE)
3838find_package (OpenSSL 1.0.1 REQUIRED MODULE)
3939find_package (ZLIB REQUIRED MODULE)
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ list(APPEND CMAKE_MODULE_PATH ${Aegis_CMAKE_DIR})
66find_dependency(Threads REQUIRED)
77find_dependency(Asio 1.12.0 REQUIRED MODULE)
88find_dependency(JSON 3.1.2 REQUIRED MODULE)
9- find_dependency(Spdlog 0.16.4 REQUIRED MODULE)
9+ find_dependency(Spdlog 1.6.0 REQUIRED MODULE)
1010find_dependency(Websocketpp 0.7.0 REQUIRED MODULE)
1111find_dependency(OpenSSL 1.0.2 REQUIRED MODULE)
1212find_dependency(ZLIB REQUIRED MODULE)
Original file line number Diff line number Diff line change @@ -11,13 +11,27 @@ if (Spdlog_INCLUDE_DIR STREQUAL "Spdlog_INCLUDE_DIR-NOTFOUND")
1111 set (Spdlog_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /lib/spdlog/include )
1212endif ()
1313
14- file (READ ${Spdlog_INCLUDE_DIR} /spdlog/common.h common_h)
15- if (NOT common_h MATCHES "SPDLOG_VERSION \" ([0-9]+)\\ .([0-9]+)\\ .([0-9]+)-?(.*)\" " )
16- message (FATAL_ERROR "Cannot get SPDLOG_VERSION from common.h." )
14+
15+ file (READ ${Spdlog_INCLUDE_DIR} /spdlog/version .h version_h)
16+
17+ if (NOT version_h MATCHES "#define SPDLOG_VER_MAJOR ([0-9]+)" )
18+ message (FATAL_ERROR "Cannot get Spdlog version from version.h." )
1719endif ()
20+
1821math (EXPR CPACK_PACKAGE_VERSION_MAJOR ${CMAKE_MATCH_1} )
19- math (EXPR CPACK_PACKAGE_VERSION_MINOR ${CMAKE_MATCH_2} )
20- math (EXPR CPACK_PACKAGE_VERSION_PATCH ${CMAKE_MATCH_3} )
22+
23+ if (NOT version_h MATCHES "#define SPDLOG_VER_MINOR ([0-9]+)" )
24+ message (FATAL_ERROR "Cannot get Spdlog version from version.h." )
25+ endif ()
26+
27+ math (EXPR CPACK_PACKAGE_VERSION_MINOR ${CMAKE_MATCH_1} )
28+
29+ if (NOT version_h MATCHES "#define SPDLOG_VER_PATCH ([0-9]+)" )
30+ message (FATAL_ERROR "Cannot get Spdlog version from version.h." )
31+ endif ()
32+
33+ math (EXPR CPACK_PACKAGE_VERSION_PATCH ${CMAKE_MATCH_1} )
34+
2135string (CONCAT PC_Spdlog_VERSION ${CPACK_PACKAGE_VERSION_MAJOR} .${CPACK_PACKAGE_VERSION_MINOR} .
2236 ${CPACK_PACKAGE_VERSION_PATCH} )
2337
You can’t perform that action at this time.
0 commit comments