Skip to content

Commit

Permalink
(#15815) Add BUILD_TESTING OFF to CMake
Browse files Browse the repository at this point in the history
* add BUILD_TESTING OFF

* Update recipes/cmake/3.x.x/conanfile.py
  • Loading branch information
czoido authored Feb 8, 2023
1 parent b9f542e commit b7ecc20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/cmake/3.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ def generate(self):
save(self, "bootstrap_args", json.dumps({"bootstrap_cmake_options": ' '.join(arg for arg in bootstrap_cmake_options)}))
else:
tc = CMakeToolchain(self)
# Disabling testing because CMake tests build can fail in Windows in some cases
tc.variables["BUILD_TESTING"] = False
if not self.settings.compiler.cppstd:
tc.variables["CMAKE_CXX_STANDARD"] = 11
tc.variables["CMAKE_BOOTSTRAP"] = False
Expand Down

0 comments on commit b7ecc20

Please sign in to comment.