Skip to content

Commit

Permalink
Fix conanfile to use cmake install
Browse files Browse the repository at this point in the history
  • Loading branch information
Tsubashi authored Oct 26, 2018
1 parent 7ab6c52 commit cd3eae5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def build(self):
cmake.definitions["PYTHON_TARGET_VERSION"] = self.env.get("PYTHON_TARGET_VERSION", "3.6")
cmake.configure(source_folder=".")
cmake.build()
cmake.install()

if self.options.testing:
print("***********(0.0)*************")
Expand All @@ -108,16 +109,9 @@ def build(self):
'*_pyt.py -s ../xmsstamper/python', cwd="./lib")

def package(self):
self.copy("*.h", dst="include/xmsinterp", src="xmsinterp")
self.copy("*.lib", dst="lib", keep_path=False)
self.copy("*.exp", dst="lib", keep_path=False)
self.copy("*.pyd", dst="site-packages", keep_path=False)
self.copy("*_py.*.so", dst="site-packages", keep_path=False)
self.copy("*_py.so", dst="site-packages", keep_path=False)
self.copy("*.dll", dst="bin", keep_path=False)
self.copy("*.dylib*", dst="lib", keep_path=False)
self.copy("*.so", dst="lib", keep_path=False)
self.copy("*.a", dst="lib", keep_path=False)
self.copy("license", dst="licenses", ignore_case=True, keep_path=False)

def package_info(self):
Expand Down

0 comments on commit cd3eae5

Please sign in to comment.