Ignore:
Timestamp:
Jan 5, 2013, 7:21:56 AM (7 years ago)
Author:
jeremyhu@…
Message:

cmake: Ensure that CMAKE_OSX_DEPLOYMENT_TARGET is unset if CMAKE_OSX_SYSROOT is /

This will avoid errors like the following when we don't use an sdkroot:

CMake Error at /opt/local/share/cmake-2.8/Modules/Platform/Darwin.cmake:190 (message):

CMAKE_OSX_DEPLOYMENT_TARGET is '10.8' but CMAKE_OSX_SYSROOT:

"/"

is not set to a MacOSX SDK with a recognized version. Either set
CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
empty.

File:
1 edited

Legend:

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

    r99819 r101141  
    7575            configure.args-append -DCMAKE_OSX_SYSROOT="${configure.sdkroot}"
    7676        } else {
    77             configure.args-append -DCMAKE_OSX_SYSROOT=/
     77            configure.args-append -DCMAKE_OSX_SYSROOT=/ -DCMAKE_OSX_DEPLOYMENT_TARGET=""
    7878        }
    7979    }
Note: See TracChangeset for help on using the changeset viewer.