Skip to content

Commit

Permalink
Set proper license based on version
Browse files Browse the repository at this point in the history
  • Loading branch information
AbrilRBS authored and tbeu committed Jun 5, 2024
1 parent c803a17 commit cfee455
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes/laszip/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class LaszipConan(ConanFile):
name = "laszip"
description = "C++ library for lossless LiDAR compression."
license = "Apache-2.0"
license = "LGPL-2.1"
topics = ("las", "laz", "lidar", "compression", "decompression")
homepage = "https://github.com/LASzip/LASzip"
url = "https://github.com/conan-io/conan-center-index"
Expand All @@ -35,6 +35,8 @@ def config_options(self):
del self.options.fPIC

def configure(self):
if Version(self.version) >= "3.4.4":
self.license = "Apache-2.0"
if self.options.shared:
self.options.rm_safe("fPIC")

Expand Down

0 comments on commit cfee455

Please sign in to comment.