# #scons - A build-tool which is based on python # #Will install scons under the Python installed under the OSD python2 prefix. #Following installation, scons can be invoked as #$ # #NOTE NOTE NOTE # #Scons will not work with Python 3, so we take care NOT to use the Python that #is built as part of OSD (it is Python 3). Instead we rely on Python 2 from #$ # if (WIN32) ExternalProject_Add ( scons PREFIX ${CMAKE_INSTALL_PREFIX}/python2 BUILD_IN_SOURCE 1 URL http://prdownloads.sourceforge.net/scons/scons-2.4.1.zip URL_MD5 a0c83dd776a01f8be570777807d96d29 UPDATE_COMMAND "" CONFIGURE_COMMAND "" BUILD_COMMAND "" INSTALL_COMMAND /bin/python ./setup.py install DEPENDS python2 ) endif (WIN32) #Install from the package manager #sudo apt-get install scons #Invoke as /usr/bin/scons if (UNIX) ExternalProject_Add ( scons PREFIX ${CMAKE_INSTALL_PREFIX} BUILD_IN_SOURCE 1 DOWNLOAD_COMMAND "" UPDATE_COMMAND "" CONFIGURE_COMMAND "" BUILD_COMMAND /usr/bin/scons --version INSTALL_COMMAND "" ) endif (UNIX)