From 27f3f61b7716292fc8e2b1a17f88ceb6130ab726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ricardo=20Montan=CC=83ana?= Date: Tue, 22 Jul 2025 22:32:01 +0200 Subject: [PATCH] Add conan build options --- conanfile.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/conanfile.py b/conanfile.py index 6ff3e0b..8269761 100644 --- a/conanfile.py +++ b/conanfile.py @@ -12,9 +12,13 @@ class PlatformConan(ConanFile): settings = "os", "compiler", "build_type", "arch" options = { "enable_testing": [True, False], + "shared": [True, False], + "fPIC": [True, False], } default_options = { "enable_testing": False, + "shared": False, + "fPIC": True, } # Sources are located in the same place as this recipe, copy them to the recipe @@ -47,6 +51,14 @@ class PlatformConan(ConanFile): self.test_requires("catch2/3.8.1") self.test_requires("arff-files/1.2.1") + def config_options(self): + if self.settings.os == "Windows": + del self.options.fPIC + + def configure(self): + if self.options.shared: + self.options.rm_safe("fPIC") + def layout(self): cmake_layout(self)