Last active
December 31, 2015 06:59
-
-
Save springmeyer/7951638 to your computer and use it in GitHub Desktop.
Build OSRM against custom directories and with custom C++ compiler flags
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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