[MacPorts] #33259: cmake portgroup: out of source build option, possibly by default

MacPorts noreply at macports.org
Tue Mar 10 15:19:19 PDT 2015


#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


More information about the macports-tickets mailing list