Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1 from bincrafters/testing/8.41
Browse files Browse the repository at this point in the history
Install during package stage
  • Loading branch information
solvingj authored Mar 17, 2018
2 parents 1fb6ea7 + f1338a7 commit 5cdc4c1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,22 @@ def requirements(self):
if self.options.with_bzip2:
self.requires.add("bzip2/1.0.6@conan/stable")

def build(self):
def configure_cmake(self):
cmake = CMake(self)
cmake.definitions["PCRE_BUILD_TESTS"] = False
if self.settings.os == "Windows" and self.settings.compiler == "Visual Studio":
cmake.definitions["PCRE_STATIC_RUNTIME"] = not self.options.shared and "MT" in self.settings.compiler.runtime
cmake.configure(build_folder=self.build_subfolder)
return cmake

def build(self):
cmake = self.configure_cmake()
cmake.build()
cmake.install()

def package(self):
cmake = self.configure_cmake()
cmake.install()
cmake.patch_config_paths()
self.copy(pattern="LICENCE", dst="licenses", src=self.source_subfolder)

def package_info(self):
Expand Down

0 comments on commit 5cdc4c1

Please sign in to comment.