Skip to content

Commit

Permalink
bump 3rd party libs && bump version to 1.3.0
Browse files Browse the repository at this point in the history
* gtest v1.14.0
* libfmt 10.1.1
* expected-lite latest
* rapidjson - latest
* boost 1.83
  • Loading branch information
rmorozov committed Oct 13, 2023
1 parent 3d782f1 commit 96b0e3c
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.23.0)
project(Jinja2Cpp VERSION 1.2.2)
project(Jinja2Cpp VERSION 1.3.0)

if (${CMAKE_VERSION} VERSION_GREATER "3.12")
cmake_policy(SET CMP0074 OLD)
Expand Down
13 changes: 13 additions & 0 deletions conanfile.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[requires]
boost/1.83.0
expected-lite/0.6.3
fmt/10.1.1
nlohmann_json/3.11.2
optional-lite/3.5.0
rapidjson/cci.20220822
string-view-lite/1.7.0
variant-lite/2.0.0

[generators]
CMakeDeps
CMakeToolchain
2 changes: 1 addition & 1 deletion thirdparty/gtest
Submodule gtest updated 144 files
2 changes: 1 addition & 1 deletion thirdparty/nonstd/expected-lite
10 changes: 5 additions & 5 deletions thirdparty/thirdparty-conan-build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ find_package(optional-lite REQUIRED)
find_package(string-view-lite REQUIRED)
find_package(nlohmann_json REQUIRED)

find_package(Boost COMPONENTS algorithm filesystem json optional variant REQUIRED)
set(CONAN_BOOST_PACKAGE_NAME Boost::boost)
find_package(Boost COMPONENTS algorithm filesystem json optional variant regex REQUIRED)
find_package(fmt REQUIRED)
find_package(rapidjson REQUIRED)
find_package(RapidJSON REQUIRED)

set(JINJA2_PRIVATE_LIBS_INT ${CONAN_BOOST_PACKAGE_NAME} fmt::fmt rapidjson::rapidjson nlohmann_json::nlohmann_json)
set(JINJA2_PUBLIC_LIBS_INT nonstd::expected-lite nonstd::variant-lite nonstd::optional-lite nonstd::string-view-lite)
set(JINJA2_PRIVATE_LIBS_INT Boost::headers Boost::filesystem)
set(JINJA2_PUBLIC_LIBS_INT Boost::json fmt::fmt rapidjson Boost::regex
nlohmann_json::nlohmann_json nonstd::expected-lite nonstd::variant-lite nonstd::optional-lite nonstd::string-view-lite)
3 changes: 2 additions & 1 deletion thirdparty/thirdparty-internal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ list(APPEND BOOST_INCLUDE_LIBRARIES
optional
variant
json
regex
)

include(FetchContent)
FetchContent_Declare(
Boost
GIT_REPOSITORY https://github.com/boostorg/boost.git
GIT_TAG boost-1.82.0
GIT_TAG boost-1.83.0
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_LIST_DIR}/../cmake/patches/0001-fix-skip-install-rules.patch" || true
)
FetchContent_MakeAvailable(Boost)
Expand Down

0 comments on commit 96b0e3c

Please sign in to comment.