Skip to content

Commit

Permalink
(#23715) box2d: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrilRBS authored Apr 24, 2024
1 parent 7c859f9 commit 22cda07
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions recipes/box2d/2.4.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
from conan.tools.scm import Version

required_conan_version = ">=1.52.0"
required_conan_version = ">=1.53.0"


class Box2dConan(ConanFile):
Expand All @@ -14,27 +14,27 @@ class Box2dConan(ConanFile):
homepage = "http://box2d.org/"
url = "https://github.com/conan-io/conan-center-index"
topics = ("physics-engine", "graphic", "2d", "collision")
package_type = "library"
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [True, False],
"fPIC": [True, False]}
default_options = {"shared": False, "fPIC": True,}
options = {
"shared": [True, False],
"fPIC": [True, False]
}
default_options = {
"shared": False,
"fPIC": True
}

def export_sources(self):
export_conandata_patches(self)

def config_options(self):
if self.settings.os == "Windows":
try:
del self.options.fPIC
except Exception:
pass
self.options.rm_safe("fPIC")

def configure(self):
if self.options.shared:
try:
del self.options.fPIC
except Exception:
pass
self.options.rm_safe("fPIC")

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

0 comments on commit 22cda07

Please sign in to comment.