Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trantor: add version 1.5.10 #15416

Merged
merged 5 commits into from
Feb 3, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions recipes/trantor/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"1.5.9":
url: "https://github.com/an-tao/trantor/archive/v1.5.9.tar.gz"
sha256: "989ac09aa211fe8b04577c596524052faa91fabb084edc1072e550d8bd3e21a8"
"1.5.8":
url: "https://github.com/an-tao/trantor/archive/v1.5.8.tar.gz"
sha256: "705ec0176681be5c99fcc7af37416ece9d65ff4d907bca764cb11471b104fbf8"
Expand Down
6 changes: 2 additions & 4 deletions recipes/trantor/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def _compilers_minimum_version(self):
return {
"gcc": "5",
"Visual Studio": "15.0",
"msvc": "191",
"clang": "5",
"apple-clang": "10",
}
Expand All @@ -48,10 +49,7 @@ def config_options(self):

def configure(self):
if self.options.shared:
try:
del self.options.fPIC
except Exception:
pass
self.options.rm_safe("fPIC")

def layout(self):
cmake_layout(self, src_folder="src")
Expand Down
4 changes: 2 additions & 2 deletions recipes/trantor/all/test_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.8)
project(test_package CXX)
project(test_package LANGUAGES CXX)

find_package(Trantor CONFIG REQUIRED)

add_executable(${PROJECT_NAME} test_package.cpp)
target_link_libraries(${PROJECT_NAME} Trantor::Trantor)
target_link_libraries(${PROJECT_NAME} PRIVATE Trantor::Trantor)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14)
9 changes: 3 additions & 6 deletions recipes/trantor/all/test_v1_package/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
cmake_minimum_required(VERSION 3.8)

project(test_package CXX)
project(test_package)

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup(TARGETS)

find_package(Trantor REQUIRED CONFIG)

add_executable(${PROJECT_NAME} ../test_package/test_package.cpp)
target_link_libraries(${PROJECT_NAME} PRIVATE Trantor::Trantor)
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_14)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package/
${CMAKE_CURRENT_BINARY_DIR}/test_package/)
2 changes: 2 additions & 0 deletions recipes/trantor/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
versions:
"1.5.9":
folder: "all"
"1.5.8":
folder: "all"
"1.5.7":
Expand Down