Ignore:
Timestamp:
Mar 17, 2015, 8:18:49 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

    r129400 r134056  
    3535# PortGroup     cmake 1.0
    3636
     37options cmake.build_dir cmake.out_of_source
     38default cmake.build_dir {${workpath}/build}
     39default cmake.out_of_source yes
     40
    3741# standard place to install extra CMake modules
    3842set cmake_share_module_dir ${prefix}/share/cmake/Modules
    3943
    4044depends_build-append port:cmake
     45
     46proc _cmake_get_build_dir {} {
     47    if {[option cmake.out_of_source]} {
     48        return [option cmake.build_dir]
     49    }
     50    return [option worksrcpath]
     51}
     52default configure.dir {[_cmake_get_build_dir]}
     53pre-configure {
     54    file mkdir ${configure.dir}
     55}
    4156
    4257#FIXME: ccache works with cmake on linux
     
    5772                    -DCMAKE_FIND_FRAMEWORK=LAST \
    5873                    -Wno-dev
     74
     75default configure.post_args {${worksrcpath}}
    5976
    6077# CMake honors set environment variables CFLAGS, CXXFLAGS, and LDFLAGS when it
     
    135152    configure.args-delete     --enable-debug
    136153}
     154
     155default build.dir {${configure.dir}}
Note: See TracChangeset for help on using the changeset viewer.