Tyro/cmake.sh

24 lines
560 B
Bash
Raw Normal View History

#!/bin/bash
2015-07-10 16:24:09 -04:00
mkdir -p build
unset MACOSX_DEPLOYMENT_TARGET
unset CMAKE_OSX_SYSROOT
export MACOSX_DEPLOYMENT_TARGET="10.7"
export CMAKE_OSX_SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"
if [[ "$OSTYPE" == "linux-gnu" ]]; then
cd build
2015-11-03 13:30:00 -05:00
cmake -DHUNTER_ENABLED=OFF ..
make "$@"
cd ..
elif [[ "$OSTYPE" == "darwin"* ]]; then
# On OSX, disable hunter, because it doesn't work
# for building wxWidgets, as it thinks it is on linux
cd build
cmake -DHUNTER_ENABLED=OFF ..
make "$@"
cd ..
fi