mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-10 00:11:44 +00:00
(#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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user