| | |
| | | if(NOT EXISTS ${ZipFilePath})
|
| | | message(STATUS "Downloading boost ${BoostVersion} to ${BoostCacheDir}")
|
| | | endif()
|
| | | #SHOW_PROGRESS
|
| | | file(DOWNLOAD http://sourceforge.net/projects/boost/files/boost/${BoostVersion}/${BoostFolderName}.tar.bz2/download
|
| | | ${ZipFilePath}
|
| | | STATUS Status
|
| | | SHOW_PROGRESS
|
| | | EXPECTED_HASH SHA1=${BoostSHA1}
|
| | | )
|
| | |
|
| | |
| | | file(MAKE_DIRECTORY ${BoostExtractFolder})
|
| | | file(COPY ${ZipFilePath} DESTINATION ${BoostExtractFolder})
|
| | | message(STATUS "Extracting boost ${BoostVersion} to ${BoostExtractFolder}")
|
| | | execute_process(COMMAND ${CMAKE_COMMAND} -E tar vxfz ${BoostFolderName}.tar.bz2
|
| | | execute_process(COMMAND ${CMAKE_COMMAND} -E tar xfz ${BoostFolderName}.tar.bz2
|
| | | WORKING_DIRECTORY ${BoostExtractFolder}
|
| | | RESULT_VARIABLE Result
|
| | | )
|