Difference between revisions of "User:Michelle2 Zenovka/cmake-notes"
Jump to navigation
Jump to search
Line 15: | Line 15: | ||
if [ $x == "-m" ] ; then | if [ $x == "-m" ] ; then | ||
echo "i686" | |||
fi | fi | ||
Line 23: | Line 23: | ||
if [ $x == "-r" ] ; then | if [ $x == "-r" ] ; then | ||
echo "2.6.24-1-i686" | |||
fi | fi | ||
Revision as of 11:50, 30 July 2008
Turn on verbose info
develop.py build VERBOSE=1
Pass custom flags
develop.py configure -DMYVARIABLE:BOOL=TRUE
Mess around with cmakes build arch
cmake uses uname on linux to determine the arch, By replacing /bin/uname with a script that echos what you want.
#!/bin/sh x=$1
if [ $x == "-m" ] ; then echo "i686" fi if [ $x == "-s" ] ; then echo "Linux" fi
if [ $x == "-r" ] ; then echo "2.6.24-1-i686" fi if [ $x == "-p" ] ; then echo "unknown" fi