Skip to content

Commit

Permalink
qcoro: add system framework for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Mar 19, 2024
1 parent 515bba5 commit 1997406
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recipes/qcoro/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.apple import is_apple_os
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
Expand Down Expand Up @@ -126,6 +127,8 @@ def package_info(self):
self.cpp_info.components["qcoro-network"].set_property("cmake_target_name", "QCoro::Network")
self.cpp_info.components["qcoro-network"].libs = ["QCoro6Network"]
self.cpp_info.components["qcoro-network"].requires = ["qt::qtNetwork"]
if is_apple_os(self):
self.cpp_info.components["qcoro-network"].frameworks = ["CFNetwork"]

if self.dependencies["qt"].options.with_dbus:
self.cpp_info.components["qcoro-dbus"].set_property("cmake_target_name", "QCoro::DBus")
Expand Down

0 comments on commit 1997406

Please sign in to comment.