Re: [MacPorts] #33259: cmake portgroup: out of source build option, possibly by default
#33259: cmake portgroup: out of source build option, possibly by default ---------------------------+-------------------------------- Reporter: ryandesign@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: Port: | ---------------------------+-------------------------------- Comment (by mojca@…): Replying to [comment:14 rjvbertin@…]:
{{{ +options cmake.build_out_of_source +default cmake.build_out_of_source false + +if {cmake.build_out_of_source} { + # setup all ports using cmake to build in a separate directory from the source; + # this setting must be the full directory path + post-extract { file mkdir ${workpath}/build } + + # standard post-arg, where to find the primary CMakeLists.txt file. + default configure.post_args {../${worksrcdir}} + default configure.dir {${workpath}/build} + default build.dir {${workpath}/build} +} }}}
What is the role of the "`default`" keyword in "`default build.dir`" for example? Couldn't it be left out? -- Ticket URL: <https://trac.macports.org/ticket/33259#comment:19> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts