From 7db189faa6d1f758a86e8724774734c50c0d3055 Mon Sep 17 00:00:00 2001 From: Leilei Date: Fri, 4 Sep 2020 09:48:13 +0800 Subject: [PATCH] =?UTF-8?q?=E2=98=80=EF=B8=8F=20add=20make=20target=20:=20?= =?UTF-8?q?package?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 282c98e..3623152 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -170,10 +170,12 @@ install(PROGRAMS build/proto2json DESTINATION bin) -add_custom_target(package - COMMAND sh ../bin/package.sh - COMMENT "Now Generating tar.gz file..." -) +if (APPLE) + add_custom_target(package + COMMAND sh ../bin/package.sh + COMMENT "Now Generating tar.gz file..." + ) +endif() if(CMAKE_SYSTEM_NAME MATCHES "Linux") add_custom_command(TARGET proto2json POST_BUILD