Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
r-rzmq and rstudio: MACOSX_DEPLOYMENT_TARGET fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mingwandroid committed Aug 13, 2017
1 parent 2fdcebb commit c5e5439
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions r-packages/r-rzmq/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
mv DESCRIPTION DESCRIPTION.old
grep -v '^Priority: ' DESCRIPTION.old > DESCRIPTION

if [[ $(uname) == Darwin ]]; then
export MACOSX_DEPLOYMENT_TARGET=10.9
fi

$R CMD INSTALL --build .

# Add more build steps here, if they are necessary.
Expand Down
3 changes: 2 additions & 1 deletion rstudio/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ _VERBOSE="VERBOSE=1"

declare -a _CMAKE_EXTRA_CONFIG
if [[ $(uname) == Darwin ]]; then
_CMAKE_EXTRA_CONFIG+=(-DCMAKE_OSX_DEPLOYMENT_TARGET=${MACOSX_DEPLOYMENT_TARGET})
if [[ ${_XCODE_BUILD} == 1 ]]; then
_CMAKE_EXTRA_CONFIG+=(-G'Xcode')
_CMAKE_EXTRA_CONFIG+=(-DCMAKE_OSX_ARCHITECTURES=x86_64)
_VERBOSE=""
fi
unset MACOSX_DEPLOYMENT_TARGET
export MACOSX_DEPLOYMENT_TARGET
else
_CMAKE_EXTRA_CONFIG+=(-DQT_QMAKE_EXECUTABLE=${PREFIX}/bin/qmake)
fi
Expand Down

0 comments on commit c5e5439

Please sign in to comment.