Skip to content

Commit

Permalink
(#24006) librdkafka: fix link to openssl debug for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm authored May 16, 2024
1 parent 075dad4 commit 1e88c25
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions recipes/librdkafka/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from conan import ConanFile
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.env import VirtualBuildEnv
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir, replace_in_file
from conan.tools.microsoft import is_msvc
from conan.tools.files import apply_conandata_patches, copy, export_conandata_patches, get, rmdir
from conan.tools.gnu import PkgConfigDeps
import os

Expand Down Expand Up @@ -110,11 +109,6 @@ def generate(self):

def build(self):
apply_conandata_patches(self)
# There are references to libcrypto.lib and libssl.lib in rdkafka_ssl.c for versions >= 1.8.0
if is_msvc(self) and self.settings.build_type == "Debug" and self.options.get_safe("ssl", False):
rdkafka_ssl_path = os.path.join(self.source_folder, "src", "rdkafka_ssl.c")
replace_in_file(self, rdkafka_ssl_path, "libcrypto.lib", "libcryptod.lib")
replace_in_file(self, rdkafka_ssl_path, "libssl.lib", "libssld.lib")
cmake = CMake(self)
cmake.configure()
cmake.build()
Expand Down

0 comments on commit 1e88c25

Please sign in to comment.