Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/Offline/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ class Offline(CMakePackage):
variant("build_type", default="RelWithDebInfo",
description="CMake build type")

variant("python",default=False,description="Build Python bindings")

# Direct dependencies, see ups/product_deps
depends_on("geant4@11:", when="+g4")
depends_on("[email protected]:", type="build")
Expand Down Expand Up @@ -85,7 +87,7 @@ class Offline(CMakePackage):
depends_on("boost+iostreams+program_options")

def cmake_args(self):
args = [self.define_from_variant("CMAKE_CXX_STANDARD", "cxxstd"), "-DWITH_G4={0}".format("TRUE" if "+g4" in self.spec else "FALSE")]
args = [self.define_from_variant("CMAKE_CXX_STANDARD", "cxxstd"), "-DWITH_G4={0}".format("TRUE" if "+g4" in self.spec else "FALSE"),"-DBUILD_PYTHON_INTERFACE={0}".format("TRUE" if "+python" in self.spec else "FALSE")]
return args

def setup_run_environment(self, env):
Expand Down
Loading