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

Commit

Permalink
Install during package stage
Browse files Browse the repository at this point in the history
- After to --keep-build feature, the package should be installed
  during package stage

Signed-off-by: Uilian Ries <[email protected]>
  • Loading branch information
uilianries committed Mar 17, 2018
1 parent 1fb6ea7 commit f1338a7
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 f1338a7

Please sign in to comment.