Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Last active December 31, 2015 06:59
Show Gist options
  • Save springmeyer/7951638 to your computer and use it in GitHub Desktop.
Save springmeyer/7951638 to your computer and use it in GitHub Desktop.
Build OSRM against custom directories and with custom C++ compiler flags
SDK_DIR=/Users/dane/projects/mapnik-packaging/osx/out/build-libc++-x86_64
export CXXFLAGS="-std=c++11 -stdlib=libc++"
export LINK_FLAGS="-std=c++11 -stdlib=libc++"
rm -rf build/ && mkdir build/ && cd build/
cmake ../ -DWITH_TOOLS=1 \
-DCMAKE_BUILD_TYPE=Release \
-DBoost_NO_SYSTEM_PATHS=ON \
-DCMAKE_INCLUDE_PATH=${SDK_DIR}/include \
-DCMAKE_LIBRARY_PATH=${SDK_DIR}/lib
make VERBOSE=1 -j8
# TODO: gdal
# http://cmake.org/Wiki/CMake_Useful_Variables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment