(#11042) ogg: Add option to disable testing

* ogg: Add option to disable testing

* Update recipes/ogg/all/conanfile.py

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* Update recipes/ogg/all/conanfile.py

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* Update recipes/ogg/all/conanfile.py

Co-authored-by: Uilian Ries <uilianries@gmail.com>

Co-authored-by: Uilian Ries <uilianries@gmail.com>
This commit is contained in:
Gauthier Billot
2022-07-04 12:07:22 +02:00
committed by GitHub
parent dc4ca9ceaa
commit 52c0e976ca

View File

@@ -16,10 +16,12 @@ class OggConan(ConanFile):
options = {
"shared": [True, False],
"fPIC": [True, False],
"build_testing": [True, False],
}
default_options = {
"shared": False,
"fPIC": True,
"build_testing": False,
}
generators = "cmake"
@@ -58,6 +60,7 @@ class OggConan(ConanFile):
self._cmake = CMake(self)
# Generate a relocatable shared lib on Macos
self._cmake.definitions["CMAKE_POLICY_DEFAULT_CMP0042"] = "NEW"
self._cmake.definitions["BUILD_TESTING"] = self.options.build_testing
self._cmake.configure(build_folder=self._build_subfolder)
return self._cmake