forked from mpusz/mp-units
refactor: self.copy
replaced by the explicit tool copy
(for Conan 2.0)
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
from conans import ConanFile, tools
|
||||
from conans.tools import Version, check_min_cppstd
|
||||
from conan.tools.cmake import CMakeToolchain, CMakeDeps, CMake
|
||||
from conan.tools.files import copy
|
||||
from conans.errors import ConanInvalidConfiguration
|
||||
import os, re
|
||||
|
||||
@@ -160,7 +161,7 @@ class MPUnitsConan(ConanFile):
|
||||
self.info.header_only()
|
||||
|
||||
def package(self):
|
||||
self.copy("LICENSE.md", dst="licenses")
|
||||
copy(self, "LICENSE.md", self.source_folder, os.path.join(self.package_folder, "licenses"))
|
||||
cmake = CMake(self)
|
||||
cmake.install()
|
||||
tools.rmdir(os.path.join(self.package_folder, "lib", "cmake"))
|
||||
|
Reference in New Issue
Block a user