Skip to content

Commit

Permalink
(#24893) magic_enum/0.9.6: add legacy include directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nine committed Aug 12, 2024
1 parent 00457e3 commit ecdbfa0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/magic_enum/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.build import check_min_cppstd
from conan.tools.files import copy, get, rmdir
from conan.tools.files import copy, get, mkdir, rmdir
from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
from conan.tools.scm import Version
import os
Expand Down Expand Up @@ -68,6 +68,9 @@ def build(self):
def package(self):
cmake = CMake(self)
cmake.install()
if Version(self.version) >= "0.9.4" and Version(self.version) <= "0.9.6":
mkdir(self, os.path.join(self.package_folder, "include/magic_enum"))
copy(self, "*", src=os.path.join(self.package_folder, "include"), dst=os.path.join(self.package_folder, "include/magic_enum"))
copy(self, "LICENSE", src=self.source_folder, dst=os.path.join(self.package_folder, "licenses"))
rmdir(self, os.path.join(self.package_folder, "lib", "cmake"))
rmdir(self, os.path.join(self.package_folder, "lib", "pkgconfig"))
Expand Down

0 comments on commit ecdbfa0

Please sign in to comment.