Ignore:
Timestamp:
Mar 18, 2015, 9:37:44 PM (4 years ago)
Author:
larryv@…
Message:

cmake-1.0: Support out-of-source builds (#33259)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/cmake-1.0.tcl

    r134058 r134128  
    3535# PortGroup     cmake 1.0
    3636
     37options cmake.out_of_source cmake.build_dir
     38
     39default cmake.out_of_source no
     40default cmake.build_dir {${workpath}/build}
     41
    3742# standard place to install extra CMake modules
    3843set cmake_share_module_dir ${prefix}/share/cmake/Modules
    3944
    4045depends_build-append port:cmake
     46
     47proc _cmake_get_build_dir {} {
     48    if {[option cmake.out_of_source]} {
     49        return [option cmake.build_dir]
     50    }
     51    return [option worksrcpath]
     52}
     53
     54default configure.dir {[_cmake_get_build_dir]}
     55
     56pre-configure {
     57    file mkdir ${configure.dir}
     58}
    4159
    4260#FIXME: ccache works with cmake on linux
     
    5775                    -DCMAKE_FIND_FRAMEWORK=LAST \
    5876                    -Wno-dev
     77
     78default configure.post_args {${worksrcpath}}
    5979
    6080# CMake honors set environment variables CFLAGS, CXXFLAGS, and LDFLAGS when it
     
    135155    configure.args-delete     --enable-debug
    136156}
     157
     158default build.dir {${configure.dir}}
Note: See TracChangeset for help on using the changeset viewer.