From 7f725607c1f863416302594d0419c25669724435 Mon Sep 17 00:00:00 2001 From: Walid Boussaffa Date: Tue, 20 Oct 2020 17:29:37 +0100 Subject: [PATCH 01/16] added recipe for qwt 6.1.6 --- recipes/qwt/all/conandata.yml | 4 + recipes/qwt/all/conanfile.py | 108 ++++++++++++++++++++ recipes/qwt/all/test_package/CMakeLists.txt | 9 ++ recipes/qwt/all/test_package/conanfile.py | 16 +++ recipes/qwt/all/test_package/example.cpp | 7 ++ recipes/qwt/config.yml | 3 + 6 files changed, 147 insertions(+) create mode 100644 recipes/qwt/all/conandata.yml create mode 100644 recipes/qwt/all/conanfile.py create mode 100644 recipes/qwt/all/test_package/CMakeLists.txt create mode 100644 recipes/qwt/all/test_package/conanfile.py create mode 100644 recipes/qwt/all/test_package/example.cpp create mode 100644 recipes/qwt/config.yml diff --git a/recipes/qwt/all/conandata.yml b/recipes/qwt/all/conandata.yml new file mode 100644 index 0000000000000..5e6acd7ff338d --- /dev/null +++ b/recipes/qwt/all/conandata.yml @@ -0,0 +1,4 @@ +sources: + "6.1.6": + url: "https://sourceforge.net/projects/qwt/files/qwt/6.1.6/qwt-6.1.6.zip" + sha256: "4b2452662ae64656aca92f1bef44a281229f77056689100af62c4b9f24462873" diff --git a/recipes/qwt/all/conanfile.py b/recipes/qwt/all/conanfile.py new file mode 100644 index 0000000000000..05d96578103e6 --- /dev/null +++ b/recipes/qwt/all/conanfile.py @@ -0,0 +1,108 @@ +import os +from conans import ConanFile, tools +from conans.errors import ConanInvalidConfiguration + + +class QwtConan(ConanFile): + name = "qwt" + license = "Qwt License, Version 1.0" + url = "https://github.com/conan-io/conan-center-index" + homepage = "https://qwt.sourceforge.io/" + topics = ("conan", "archive", "compression") + description = ( + "The Qwt library contains GUI Components and utility classes which are primarily useful for programs " + "with a technical background. Beside a framework for 2D plots it provides scales, sliders, dials, compasses, " + "thermometers, wheels and knobs to control or display values, arrays, or ranges of type double." + ) + settings = "os", "compiler", "build_type", "arch" + options = { + "shared": [True, False], + "fPIC": [True, False], + "plot": [True, False], + "widgets": [True, False], + "svg": [True, False], + "opengl": [True, False], + "mathml": [True, False], + "designer": [True, False] + } + default_options = { + "shared": False, + "fPIC": True, + "plot": True, + "widgets": True, + "opengl": True, + "designer": True, + "mathml": False, + "svg": False + + } + generators = "qmake" + + @property + def _source_subfolder(self): + return "source_subfolder" + + def config_options(self): + if self.settings.os == "Windows": + del self.options.fPIC + + def requirements(self): + self.requires("qt/5.15.2") + + def source(self): + tools.get(**self.conan_data["sources"][self.version]) + os.rename("qwt-{}".format(self.version), self._source_subfolder) + + def _patch_qwt_config_files(self): + # qwtconfig.pri + qwtconfig_path = os.path.join(self.source_folder, self._source_subfolder, "qwtconfig.pri") + qwtconfig = tools.load(qwtconfig_path) + + qwtconfig = "CONFIG += conan_basic_setup\ninclude(../conanbuildinfo.pri)\n" + qwtconfig + qwtconfig += "QWT_CONFIG {}= QwtDll\n".format("+" if self.options.shared else "-") + qwtconfig += "QWT_CONFIG {}= QwtPlot\n".format("+" if self.options.plot else "-") + qwtconfig += "QWT_CONFIG {}= QwtWidgets\n".format("+" if self.options.widgets else "-") + qwtconfig += "QWT_CONFIG {}= QwtSvg\n".format("+" if self.options.svg else "-") + qwtconfig += "QWT_CONFIG {}= QwtOpenGL\n".format("+" if self.options.opengl else "-") + qwtconfig += "QWT_CONFIG {}= QwtMathML\n".format("+" if self.options.mathml else "-") + qwtconfig += "QWT_CONFIG {}= QwtDesigner\n".format("+" if self.options.designer else "-") + tools.save(qwtconfig_path, qwtconfig) + + # qwtbuild.pri + qwtbuild_path = os.path.join(self.source_folder, self._source_subfolder, "qwtbuild.pri") + qwtbuild = tools.load(qwtbuild_path) + # set build type + qwtbuild += "CONFIG -= debug_and_release\n" + qwtbuild += "CONFIG -= build_all\n" + qwtbuild += "CONFIG -= release\n" + qwtbuild += "CONFIG += {}\n".format("debug" if self.settings.build_type == "Debug" else "release") + if self.settings.build_type == "RelWithDebInfo": + qwtbuild += "CONFIG += force_debug_info\n" + tools.save(qwtbuild_path, qwtbuild) + + def build(self): + self._patch_qwt_config_files() + + if self.settings.os == "Windows": + vcvars = tools.vcvars_command(self.settings) + self.run("{} && qmake {}".format(vcvars, self._source_subfolder), run_environment=True) + self.run("{} && nmake".format(vcvars)) + else: + self.run("qmake {}".format(self._source_subfolder), run_environment=True) + self.run("make -j {}".format(tools.cpu_count())) + + def package(self): + self.copy("COPYING", src=os.path.join(self._source_subfolder), dst="licenses") + self.copy("*.h", dst="include", src=os.path.join(self._source_subfolder, "src")) + self.copy("*.dll", dst="bin", keep_path=False) + self.copy("*.lib", dst="lib", keep_path=False) + self.copy("*.so*", dst="lib", keep_path=False, symlinks=True) + self.copy("*.dylib", dst="lib", keep_path=False) + self.copy("*.a", dst="lib", keep_path=False) + + def package_info(self): + self.cpp_info.includedirs = ['include'] + self.cpp_info.libs = ["qwtd"] if self.settings.build_type == "Debug" else ["qwt"] + self.env_info.QT_PLUGIN_PATH.append(os.path.join(self.package_folder, 'bin')) + self.env_info.QT_PLUGIN_PATH.append(os.path.join(self.package_folder, 'lib')) + self.cpp_info.defines = ['HAVE_QWT', 'QWT_DLL'] if self.options.shared else ['HAVE_QWT'] diff --git a/recipes/qwt/all/test_package/CMakeLists.txt b/recipes/qwt/all/test_package/CMakeLists.txt new file mode 100644 index 0000000000000..80e621a1d3c51 --- /dev/null +++ b/recipes/qwt/all/test_package/CMakeLists.txt @@ -0,0 +1,9 @@ +cmake_minimum_required(VERSION 3.5) +project(PackageTest CXX) + +include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) +conan_basic_setup(TARGETS) + +add_executable(example example.cpp) +target_link_libraries(example CONAN_PKG::qt CONAN_PKG::qwt) + diff --git a/recipes/qwt/all/test_package/conanfile.py b/recipes/qwt/all/test_package/conanfile.py new file mode 100644 index 0000000000000..46ace3fc86e7d --- /dev/null +++ b/recipes/qwt/all/test_package/conanfile.py @@ -0,0 +1,16 @@ +from conans import ConanFile, CMake, tools +import os + +class QwtTestConan(ConanFile): + settings = "os", "compiler", "build_type", "arch" + generators = "cmake" + + 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", "example") + self.run(bin_path, run_environment=True) diff --git a/recipes/qwt/all/test_package/example.cpp b/recipes/qwt/all/test_package/example.cpp new file mode 100644 index 0000000000000..fe94258e61049 --- /dev/null +++ b/recipes/qwt/all/test_package/example.cpp @@ -0,0 +1,7 @@ +#include + +int main() +{ + QwtPlot* plot; + return 0; +} diff --git a/recipes/qwt/config.yml b/recipes/qwt/config.yml new file mode 100644 index 0000000000000..25122d605fe76 --- /dev/null +++ b/recipes/qwt/config.yml @@ -0,0 +1,3 @@ +versions: + "6.1.6": + folder: "all" From e89990d4ea530dcc0357e7bfe01401cfca6589aa Mon Sep 17 00:00:00 2001 From: boussaffawalid Date: Thu, 11 Feb 2021 14:21:24 +0100 Subject: [PATCH 02/16] Update recipes/qwt/all/conanfile.py Co-authored-by: ericLemanissier --- recipes/qwt/all/conanfile.py | 1 - 1 file changed, 1 deletion(-) diff --git a/recipes/qwt/all/conanfile.py b/recipes/qwt/all/conanfile.py index 05d96578103e6..11b54d2aef98c 100644 --- a/recipes/qwt/all/conanfile.py +++ b/recipes/qwt/all/conanfile.py @@ -1,6 +1,5 @@ import os from conans import ConanFile, tools -from conans.errors import ConanInvalidConfiguration class QwtConan(ConanFile): From 9cf0e1b822a038775311876faa5840ace1b4e4eb Mon Sep 17 00:00:00 2001 From: boussaffawalid Date: Thu, 11 Feb 2021 14:21:40 +0100 Subject: [PATCH 03/16] Update recipes/qwt/all/conanfile.py Co-authored-by: ericLemanissier --- recipes/qwt/all/conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/qwt/all/conanfile.py b/recipes/qwt/all/conanfile.py index 11b54d2aef98c..fb617a600db06 100644 --- a/recipes/qwt/all/conanfile.py +++ b/recipes/qwt/all/conanfile.py @@ -82,7 +82,7 @@ def _patch_qwt_config_files(self): def build(self): self._patch_qwt_config_files() - if self.settings.os == "Windows": + if self.settings.compiler == "Visual Studio": vcvars = tools.vcvars_command(self.settings) self.run("{} && qmake {}".format(vcvars, self._source_subfolder), run_environment=True) self.run("{} && nmake".format(vcvars)) From e7d9db7a238ef2b3b9b2f29d41a99d277559ad87 Mon Sep 17 00:00:00 2001 From: Walid Boussaffa Date: Thu, 11 Feb 2021 15:06:17 +0100 Subject: [PATCH 04/16] fixed conan test --- recipes/qwt/all/test_package/CMakeLists.txt | 1 + recipes/qwt/all/test_package/example.cpp | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/recipes/qwt/all/test_package/CMakeLists.txt b/recipes/qwt/all/test_package/CMakeLists.txt index 80e621a1d3c51..3b13a83ef7d6b 100644 --- a/recipes/qwt/all/test_package/CMakeLists.txt +++ b/recipes/qwt/all/test_package/CMakeLists.txt @@ -6,4 +6,5 @@ conan_basic_setup(TARGETS) add_executable(example example.cpp) target_link_libraries(example CONAN_PKG::qt CONAN_PKG::qwt) +set_property(TARGET example PROPERTY CXX_STANDARD 11) diff --git a/recipes/qwt/all/test_package/example.cpp b/recipes/qwt/all/test_package/example.cpp index fe94258e61049..194d042bbc781 100644 --- a/recipes/qwt/all/test_package/example.cpp +++ b/recipes/qwt/all/test_package/example.cpp @@ -1,7 +1,10 @@ -#include +#include +#include + +#include int main() { - QwtPlot* plot; + qDebug() << QwtDate::toString(QwtDate::toDateTime(10), "MMM dd hh:mm ", QwtDate::FirstThursday); return 0; } From 035415659d56d553e6147c329c890f38984a964e Mon Sep 17 00:00:00 2001 From: boussaffawalid Date: Sat, 20 Mar 2021 14:43:23 +0100 Subject: [PATCH 05/16] Update recipes/qwt/all/conanfile.py Co-authored-by: Chris Mc --- recipes/qwt/all/conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/qwt/all/conanfile.py b/recipes/qwt/all/conanfile.py index fb617a600db06..985defe98daa6 100644 --- a/recipes/qwt/all/conanfile.py +++ b/recipes/qwt/all/conanfile.py @@ -4,7 +4,7 @@ class QwtConan(ConanFile): name = "qwt" - license = "Qwt License, Version 1.0" + license = "LGPL-2.1-or-later" url = "https://github.com/conan-io/conan-center-index" homepage = "https://qwt.sourceforge.io/" topics = ("conan", "archive", "compression") From fe562e51998596264ec02b3b8ed6d64783febb33 Mon Sep 17 00:00:00 2001 From: boussaffawalid Date: Sat, 20 Mar 2021 14:43:49 +0100 Subject: [PATCH 06/16] Update recipes/qwt/all/conanfile.py Co-authored-by: Chris Mc --- recipes/qwt/all/conanfile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/qwt/all/conanfile.py b/recipes/qwt/all/conanfile.py index 985defe98daa6..5de5d5771c4eb 100644 --- a/recipes/qwt/all/conanfile.py +++ b/recipes/qwt/all/conanfile.py @@ -45,6 +45,10 @@ def config_options(self): if self.settings.os == "Windows": del self.options.fPIC + def configure(self): + if self.options.shared: + del self.options.fPIC + def requirements(self): self.requires("qt/5.15.2") From fb230498f740f88dd152fde9f90f121e7cca0dae Mon Sep 17 00:00:00 2001 From: Walid Boussaffa Date: Mon, 22 Mar 2021 06:35:42 +0100 Subject: [PATCH 07/16] del self.options.fPIC for test package --- recipes/qwt/all/test_package/conanfile.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes/qwt/all/test_package/conanfile.py b/recipes/qwt/all/test_package/conanfile.py index 46ace3fc86e7d..f8c3ac49685ae 100644 --- a/recipes/qwt/all/test_package/conanfile.py +++ b/recipes/qwt/all/test_package/conanfile.py @@ -1,10 +1,15 @@ from conans import ConanFile, CMake, tools import os + class QwtTestConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake" + def configure(self): + if self.options.shared: + del self.options.fPIC + def build(self): cmake = CMake(self) cmake.configure() From 44abab3f98b3b74f5c19e71fc8017ada133f6032 Mon Sep 17 00:00:00 2001 From: Walid Boussaffa Date: Mon, 22 Mar 2021 06:57:17 +0100 Subject: [PATCH 08/16] del self.options.fPIC for test package --- recipes/qwt/all/test_package/conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/qwt/all/test_package/conanfile.py b/recipes/qwt/all/test_package/conanfile.py index f8c3ac49685ae..6d4bb74ab1a67 100644 --- a/recipes/qwt/all/test_package/conanfile.py +++ b/recipes/qwt/all/test_package/conanfile.py @@ -7,7 +7,7 @@ class QwtTestConan(ConanFile): generators = "cmake" def configure(self): - if self.options.shared: + if not self.options["qwt"].fPIC: del self.options.fPIC def build(self): From fc700ae7bbaef0152bc7c076aee1d163f8803e20 Mon Sep 17 00:00:00 2001 From: Walid Boussaffa Date: Mon, 22 Mar 2021 10:11:04 +0100 Subject: [PATCH 09/16] use get_safe to check fPIC option --- recipes/qwt/all/test_package/conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/qwt/all/test_package/conanfile.py b/recipes/qwt/all/test_package/conanfile.py index 6d4bb74ab1a67..b5c5557d3ceb2 100644 --- a/recipes/qwt/all/test_package/conanfile.py +++ b/recipes/qwt/all/test_package/conanfile.py @@ -7,7 +7,7 @@ class QwtTestConan(ConanFile): generators = "cmake" def configure(self): - if not self.options["qwt"].fPIC: + if not self.options["qwt"].get_safe("fPIC"): del self.options.fPIC def build(self): From b3c4f56f535e471fb23f067c1f55ac2315eddc2c Mon Sep 17 00:00:00 2001 From: Walid Boussaffa Date: Mon, 22 Mar 2021 16:52:39 +0100 Subject: [PATCH 10/16] set target_compile_options to -fPIC --- recipes/qwt/all/test_package/CMakeLists.txt | 2 ++ recipes/qwt/all/test_package/conanfile.py | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/recipes/qwt/all/test_package/CMakeLists.txt b/recipes/qwt/all/test_package/CMakeLists.txt index 3b13a83ef7d6b..79d3544c480ff 100644 --- a/recipes/qwt/all/test_package/CMakeLists.txt +++ b/recipes/qwt/all/test_package/CMakeLists.txt @@ -5,6 +5,8 @@ include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup(TARGETS) add_executable(example example.cpp) +# Must compile with "-fPIC" since Qt was built with -reduce-relocations. +target_compile_options(example PRIVATE -fPIC) target_link_libraries(example CONAN_PKG::qt CONAN_PKG::qwt) set_property(TARGET example PROPERTY CXX_STANDARD 11) diff --git a/recipes/qwt/all/test_package/conanfile.py b/recipes/qwt/all/test_package/conanfile.py index b5c5557d3ceb2..47c78f875835e 100644 --- a/recipes/qwt/all/test_package/conanfile.py +++ b/recipes/qwt/all/test_package/conanfile.py @@ -6,10 +6,6 @@ class QwtTestConan(ConanFile): settings = "os", "compiler", "build_type", "arch" generators = "cmake" - def configure(self): - if not self.options["qwt"].get_safe("fPIC"): - del self.options.fPIC - def build(self): cmake = CMake(self) cmake.configure() From 716a6e4c1285de6b16c5d0c55ebdb36db74e944e Mon Sep 17 00:00:00 2001 From: Walid Boussaffa Date: Mon, 22 Mar 2021 17:30:49 +0100 Subject: [PATCH 11/16] fix debug lib name for non windows system --- recipes/qwt/all/conanfile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes/qwt/all/conanfile.py b/recipes/qwt/all/conanfile.py index 5de5d5771c4eb..e2c302bc4b30c 100644 --- a/recipes/qwt/all/conanfile.py +++ b/recipes/qwt/all/conanfile.py @@ -105,7 +105,10 @@ def package(self): def package_info(self): self.cpp_info.includedirs = ['include'] - self.cpp_info.libs = ["qwtd"] if self.settings.build_type == "Debug" else ["qwt"] + if self.settings.build_type == "Debug": + self.cpp_info.libs = ["qwtd"] if self.settings.os == "Windows" else ["libqwt_debug"] + else: + self.cpp_info.libs = ["qwt"] self.env_info.QT_PLUGIN_PATH.append(os.path.join(self.package_folder, 'bin')) self.env_info.QT_PLUGIN_PATH.append(os.path.join(self.package_folder, 'lib')) self.cpp_info.defines = ['HAVE_QWT', 'QWT_DLL'] if self.options.shared else ['HAVE_QWT'] From 3f4a50156705bafe388855856072a9b6891d6436 Mon Sep 17 00:00:00 2001 From: boussaffawalid Date: Mon, 24 May 2021 08:01:08 +0100 Subject: [PATCH 12/16] Update recipes/qwt/all/conanfile.py Co-authored-by: ericLemanissier --- recipes/qwt/all/conanfile.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/qwt/all/conanfile.py b/recipes/qwt/all/conanfile.py index e2c302bc4b30c..609047c31ca78 100644 --- a/recipes/qwt/all/conanfile.py +++ b/recipes/qwt/all/conanfile.py @@ -53,8 +53,7 @@ def requirements(self): self.requires("qt/5.15.2") def source(self): - tools.get(**self.conan_data["sources"][self.version]) - os.rename("qwt-{}".format(self.version), self._source_subfolder) + tools.get(**self.conan_data["sources"][self.version], strip_root=True, destination=self._source_subfolder) def _patch_qwt_config_files(self): # qwtconfig.pri From 7aa4fc32054769fd8c7124f5b315a9b1691c5c92 Mon Sep 17 00:00:00 2001 From: boussaffawalid Date: Mon, 24 May 2021 08:01:54 +0100 Subject: [PATCH 13/16] Update recipes/qwt/all/test_package/CMakeLists.txt Co-authored-by: ericLemanissier --- recipes/qwt/all/test_package/CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/recipes/qwt/all/test_package/CMakeLists.txt b/recipes/qwt/all/test_package/CMakeLists.txt index 79d3544c480ff..1355e31e87e53 100644 --- a/recipes/qwt/all/test_package/CMakeLists.txt +++ b/recipes/qwt/all/test_package/CMakeLists.txt @@ -5,8 +5,5 @@ include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup(TARGETS) add_executable(example example.cpp) -# Must compile with "-fPIC" since Qt was built with -reduce-relocations. -target_compile_options(example PRIVATE -fPIC) target_link_libraries(example CONAN_PKG::qt CONAN_PKG::qwt) set_property(TARGET example PROPERTY CXX_STANDARD 11) - From af7f20423e41680541c3ae9fec0a65f4eae6e00f Mon Sep 17 00:00:00 2001 From: Walid Boussaffa Date: Mon, 24 May 2021 08:17:34 +0100 Subject: [PATCH 14/16] Revert "Update recipes/qwt/all/test_package/CMakeLists.txt" This reverts commit 7aa4fc32054769fd8c7124f5b315a9b1691c5c92. --- recipes/qwt/all/test_package/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes/qwt/all/test_package/CMakeLists.txt b/recipes/qwt/all/test_package/CMakeLists.txt index 1355e31e87e53..79d3544c480ff 100644 --- a/recipes/qwt/all/test_package/CMakeLists.txt +++ b/recipes/qwt/all/test_package/CMakeLists.txt @@ -5,5 +5,8 @@ include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) conan_basic_setup(TARGETS) add_executable(example example.cpp) +# Must compile with "-fPIC" since Qt was built with -reduce-relocations. +target_compile_options(example PRIVATE -fPIC) target_link_libraries(example CONAN_PKG::qt CONAN_PKG::qwt) set_property(TARGET example PROPERTY CXX_STANDARD 11) + From b6cc39149c5cf8dec1b9e290957b5589d99bb8fc Mon Sep 17 00:00:00 2001 From: boussaffawalid Date: Tue, 1 Jun 2021 12:12:53 +0100 Subject: [PATCH 15/16] Update recipes/qwt/all/conanfile.py Co-authored-by: ericLemanissier --- recipes/qwt/all/conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/qwt/all/conanfile.py b/recipes/qwt/all/conanfile.py index 609047c31ca78..78ab508592340 100644 --- a/recipes/qwt/all/conanfile.py +++ b/recipes/qwt/all/conanfile.py @@ -105,7 +105,7 @@ def package(self): def package_info(self): self.cpp_info.includedirs = ['include'] if self.settings.build_type == "Debug": - self.cpp_info.libs = ["qwtd"] if self.settings.os == "Windows" else ["libqwt_debug"] + self.cpp_info.libs = ["qwtd"] if self.settings.os == "Windows" else ["qwt_debug"] else: self.cpp_info.libs = ["qwt"] self.env_info.QT_PLUGIN_PATH.append(os.path.join(self.package_folder, 'bin')) From 2808537072a74e8aeaf31571f0a19b265f2e0a90 Mon Sep 17 00:00:00 2001 From: boussaffawalid Date: Tue, 1 Jun 2021 12:48:25 +0100 Subject: [PATCH 16/16] Update recipes/qwt/all/conanfile.py Co-authored-by: ericLemanissier --- recipes/qwt/all/conanfile.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/recipes/qwt/all/conanfile.py b/recipes/qwt/all/conanfile.py index 78ab508592340..016714112ef7e 100644 --- a/recipes/qwt/all/conanfile.py +++ b/recipes/qwt/all/conanfile.py @@ -105,7 +105,12 @@ def package(self): def package_info(self): self.cpp_info.includedirs = ['include'] if self.settings.build_type == "Debug": - self.cpp_info.libs = ["qwtd"] if self.settings.os == "Windows" else ["qwt_debug"] + if self.settings.os == "Windows": + self.cpp_info.libs = ["qwtd"] + elif self.settings.os == "Macos": + self.cpp_info.libs = ["qwt_debug"] + else: + self.cpp_info.libs = ["qwt"] else: self.cpp_info.libs = ["qwt"] self.env_info.QT_PLUGIN_PATH.append(os.path.join(self.package_folder, 'bin'))