[chrome-gnome-shell] cmake: use xz found by cmake



commit 5e865d706062606e1ae8ffa0fed71b1a87ef3114
Author: Yuri Konotopov <ykonotopov gmail com>
Date:   Sun Mar 13 02:03:08 2016 +0300

    cmake: use xz found by cmake

 CMakeLists.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 95abc3e..40e0aef 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,7 +50,7 @@ find_program(XZ xz)
 if(XZ)
        # http://agateau.com/2009/cmake-and-make-dist-the-simple-version/
        add_custom_target(dist
-               COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD | xz -z > 
${CMAKE_BINARY_DIR}/${ARCHIVE_FULL_NAME}
+               COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD | ${XZ} -z > 
${CMAKE_BINARY_DIR}/${ARCHIVE_FULL_NAME}
                WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
 else(XZ)
        message(WARNING "XZ utils not found. Dist target will not be generated.")


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]