pfunit: fix error with BUILD_SHARED_LIBS (#36554)

This commit is contained in:
Matthew Thompson
2023-04-04 04:15:26 -04:00
committed by GitHub
parent 88cc949841
commit 6fca0f8018

View File

@@ -147,7 +147,7 @@ def cmake_args(self):
spec = self.spec spec = self.spec
args = [ args = [
self.define("Python_EXECUTABLE", spec["python"].command), self.define("Python_EXECUTABLE", spec["python"].command),
self.define_from_variant("BUILD_SHARED_LIBS", False), self.define("BUILD_SHARED_LIBS", False),
self.define("CMAKE_Fortran_MODULE_DIRECTORY", spec.prefix.include), self.define("CMAKE_Fortran_MODULE_DIRECTORY", spec.prefix.include),
self.define_from_variant("ENABLE_BUILD_DOXYGEN", "docs"), self.define_from_variant("ENABLE_BUILD_DOXYGEN", "docs"),
self.define("ENABLE_TESTS", self.run_tests), self.define("ENABLE_TESTS", self.run_tests),