mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-05 17:01:17 -05:00
b3c0afa5df
Made kvasd download failure a fatal build error. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4015 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
28 lines
772 B
CMake
28 lines
772 B
CMake
#
|
|
# CMake script to fetch kvasd binary for the current platform
|
|
#
|
|
set (kvasd_NAME https://svn.code.sf.net/p/wsjt/wsjt/trunk/kvasd-binary/${SYSTEM_NAME}/kvasd${EXECUTABLE_SUFFIX})
|
|
message (STATUS "file: ${kvasd_NAME}")
|
|
if (APPLE)
|
|
set (__kvasd_md5sum 198dbdde1e4b04f9940f63731097ee35)
|
|
endif (APPLE)
|
|
if (WIN32)
|
|
set (__kvasd_md5sum 7b16809e51126a01bd02aed44427510c)
|
|
endif (WIN32)
|
|
if (UNIX)
|
|
set (__kvasd_md5sum 77d5eef0215783fa74478ab411ac32ca)
|
|
endif (UNIX)
|
|
file (
|
|
DOWNLOAD ${kvasd_NAME} contrib/kvasd${EXECUTABLE_SUFFIX}
|
|
TIMEOUT 10
|
|
STATUS kvasd_STATUS
|
|
LOG kvasd_LOG
|
|
SHOW_PROGRESS
|
|
EXPECTED_MD5 ${__kvasd_md5sum}
|
|
)
|
|
list (GET kvasd_STATUS 0 kvasd_RC)
|
|
if (kvasd_RC)
|
|
message (WARNING "${kvasd_STATUS}")
|
|
message (FATAL_ERROR "${kvasd_LOG}")
|
|
endif (kvasd_RC)
|