aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorTrung N Tran <trung.tran@ettus.com>2018-02-26 12:38:33 -0800
committerMartin Braun <martin.braun@ettus.com>2018-02-27 12:13:06 -0800
commit5829feefc693101f78602f0aa71b224bc18fef3d (patch)
tree4f6beba8a9bfd9d72483418485247065db4ddb4d /host
parent82100306d0b7ba6c7483853c3e7bcc54619eae8e (diff)
downloaduhd-5829feefc693101f78602f0aa71b224bc18fef3d.tar.gz
uhd-5829feefc693101f78602f0aa71b224bc18fef3d.tar.bz2
uhd-5829feefc693101f78602f0aa71b224bc18fef3d.zip
cmake: force cmake to regenerate uhd_images_downloader.py
... when manifest.txt changed.
Diffstat (limited to 'host')
-rw-r--r--host/utils/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/host/utils/CMakeLists.txt b/host/utils/CMakeLists.txt
index 9f92b244c..5f8309587 100644
--- a/host/utils/CMakeLists.txt
+++ b/host/utils/CMakeLists.txt
@@ -127,6 +127,14 @@ CONFIGURE_FILE(
${CMAKE_CURRENT_SOURCE_DIR}/uhd_images_downloader.py.in
${CMAKE_CURRENT_BINARY_DIR}/uhd_images_downloader.py
@ONLY)
+# TODO: FIXME when know how.
+# This is a hack to force cmake regenerate uhd_images_downloader.py
+# whenever manifest.txt file changed.
+CONFIGURE_FILE(
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../images/manifest.txt
+ ${CMAKE_CURRENT_SOURCE_DIR}/../../images/manifest.txt
+COPYONLY)
+
UHD_INSTALL(PROGRAMS
${CMAKE_CURRENT_BINARY_DIR}/uhd_images_downloader.py
DESTINATION ${PKG_LIB_DIR}/utils