-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* soci: conan v2 support Additionally, drop old versions and update dependencies * soci: fix linter nits * soci: warn -> warning * soci: cleanup test_v1_package
- Loading branch information
Showing
10 changed files
with
134 additions
and
139 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
recipes/soci/all/patches/0001-Remove-hardcoded-INSTALL_NAME_DIR-for-relocatable-li.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
From d491bf7b5040d314ffd0c6310ba01f78ff44c85e Mon Sep 17 00:00:00 2001 | ||
From: Rasmus Thomsen <[email protected]> | ||
Date: Fri, 14 Apr 2023 09:16:29 +0200 | ||
Subject: [PATCH] Remove hardcoded INSTALL_NAME_DIR for relocatable libraries | ||
on MacOS | ||
|
||
--- | ||
cmake/SociBackend.cmake | 2 +- | ||
src/core/CMakeLists.txt | 1 - | ||
2 files changed, 1 insertion(+), 2 deletions(-) | ||
|
||
diff --git a/cmake/SociBackend.cmake b/cmake/SociBackend.cmake | ||
index 5d4ef0df..39fe1f77 100644 | ||
--- a/cmake/SociBackend.cmake | ||
+++ b/cmake/SociBackend.cmake | ||
@@ -171,7 +171,7 @@ macro(soci_backend NAME) | ||
set_target_properties(${THIS_BACKEND_TARGET} | ||
PROPERTIES | ||
SOVERSION ${${PROJECT_NAME}_SOVERSION} | ||
- INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib) | ||
+ ) | ||
|
||
if(APPLE) | ||
set_target_properties(${THIS_BACKEND_TARGET} | ||
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt | ||
index 3e7deeae..f9eae564 100644 | ||
--- a/src/core/CMakeLists.txt | ||
+++ b/src/core/CMakeLists.txt | ||
@@ -59,7 +59,6 @@ if (SOCI_SHARED) | ||
PROPERTIES | ||
VERSION ${SOCI_VERSION} | ||
SOVERSION ${SOCI_SOVERSION} | ||
- INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib | ||
CLEAN_DIRECT_OUTPUT 1) | ||
endif() | ||
|
||
-- | ||
2.25.1 | ||
|
17 changes: 0 additions & 17 deletions
17
recipes/soci/all/patches/0001-handle-libmysqlclient8.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
from conans import ConanFile, CMake, tools | ||
from conan import ConanFile | ||
from conan.tools.build import can_run | ||
from conan.tools.cmake import CMake, cmake_layout | ||
import os | ||
|
||
|
||
class TestPackageConan(ConanFile): | ||
settings = "os", "arch", "compiler", "build_type" | ||
generators = "cmake", "cmake_find_package_multi" | ||
settings = "os", "arch", "compiler", "build_type", | ||
generators = "CMakeToolchain", "CMakeDeps", "VirtualRunEnv" | ||
|
||
def requirements(self): | ||
self.requires(self.tested_reference_str) | ||
|
||
def layout(self): | ||
cmake_layout(self) | ||
|
||
def build(self): | ||
cmake = CMake(self) | ||
cmake.configure() | ||
cmake.build() | ||
|
||
def test(self): | ||
if not tools.cross_building(self): | ||
bin_path = os.path.join("bin", "test_package") | ||
self.run(bin_path, run_environment=True) | ||
if can_run(self): | ||
bin_path = os.path.join(self.cpp.build.bindirs[0], "test_package") | ||
self.run(bin_path, env="conanrun") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
project(test_package) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup(TARGETS) | ||
|
||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package/ | ||
${CMAKE_CURRENT_BINARY_DIR}/test_package/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from conans import ConanFile, CMake, tools | ||
import os | ||
|
||
|
||
class TestPackageConan(ConanFile): | ||
settings = "os", "arch", "compiler", "build_type" | ||
generators = "cmake", "cmake_find_package_multi" | ||
|
||
def build(self): | ||
cmake = CMake(self) | ||
cmake.configure() | ||
cmake.build() | ||
|
||
def test(self): | ||
if not tools.cross_building(self): | ||
bin_path = os.path.join("bin", "test_package") | ||
self.run(bin_path, run_environment=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,3 @@ | ||
versions: | ||
"4.0.3": | ||
folder: all | ||
"4.0.2": | ||
folder: all | ||
"4.0.1": | ||
folder: all |