Created
January 30, 2013 19:13
-
-
Save jvcleave/4675868 to your computer and use it in GitHub Desktop.
cmake flags for compiling raspberrypi/userland with distcc
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
| sed -i 's/if (DEFINED CMAKE_TOOLCHAIN_FILE)/if (NOT DEFINED CMAKE_TOOLCHAIN_FILE)/g' makefiles/cmake/arm-linux.cmake | |
| mkdir build | |
| cd build | |
| cmake -D CMAKE_C_COMPILER=/usr/lib/distcc/gcc -D CMAKE_CXX_COMPILER=/usr/lib/distcc/g++ -DCMAKE_BUILD_TYPE=Release .. | |
| make | |
| make install | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment