Skip to content

Commit

Permalink
daggy: disable libssh2 for MSVC shared Conan v1 build
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Mar 23, 2024
1 parent 426eeb3 commit f75814d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion recipes/daggy/2.1/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import os

from conan import ConanFile
from conan import ConanFile, conan_version
from conan.errors import ConanInvalidConfiguration
from conan.tools.build import check_min_cppstd
from conan.tools.cmake import CMake, CMakeDeps, CMakeToolchain, cmake_layout
from conan.tools.env import VirtualBuildEnv, VirtualRunEnv
from conan.tools.files import copy, get
from conan.tools.microsoft import is_msvc
from conan.tools.scm import Version

required_conan_version = ">=1.60.0 <2 || >=2.0.5"
Expand Down Expand Up @@ -59,6 +60,10 @@ def configure(self):
if self.options.shared:
self.options.rm_safe("fPIC")
self.options["qt"].shared = True
if conan_version.major == 1 and is_msvc(self) and self.options.shared:
# test_package fails with libssh2 linker errors:
# Ssh2Client.obj : error LNK2019: unresolved external symbol __imp_libssh2_exit
self.options.with_ssh2 = False

def layout(self):
cmake_layout(self, src_folder="src")
Expand Down

0 comments on commit f75814d

Please sign in to comment.