Skip to content

Commit

Permalink
Updated option for setting cmake verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAce committed Aug 28, 2021
1 parent 4e9747f commit 6c771c1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,14 @@ def _configure_cmake(self):
self._cmake = CMake(self)
self._cmake.definitions["H5PP_ENABLE_TESTS"] = self.options.tests
self._cmake.definitions["H5PP_BUILD_EXAMPLES"] = self.options.examples
self._cmake.definitions["H5PP_PRINT_INFO"] = self.options.verbose
self._cmake.definitions["H5PP_PACKAGE_MANAGER"] = "conan"
self._cmake.definitions["H5PP_ENABLE_PCH"] = self.options.pch
self._cmake.definitions["H5PP_ENABLE_CCACHE"] = self.options.ccache
self._cmake.configure()
args = None
if self.options.verbose:
args = '--loglevel=DEBUG'
self._cmake.verbose=True
self._cmake.configure(args=args)
return self._cmake

def build(self):
Expand Down

0 comments on commit 6c771c1

Please sign in to comment.