Skip to content

Commit c55c750

Browse files
Update recipes/rapidcheck/all/conanfile.py
Co-authored-by: Uilian Ries <[email protected]>
1 parent 8bc0832 commit c55c750

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

recipes/rapidcheck/all/conanfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ def _configure_cmake(self):
8181
return self._cmake
8282

8383
def build(self):
84+
if self.options.enable_gmock and not self.deps_cpp_info["gtest"].build_gmock:
85+
raise ConanInvalidConfiguration("The option `rapidcheck:enable_gmock` requires gtest:build_gmock=True`")
8486
for patch in self.conan_data["patches"][self.version]:
8587
tools.patch(**patch)
8688
cmake = self._configure_cmake()

0 commit comments

Comments
 (0)