From 631cecdceb501514f079f90684b56bcdc0c8032c Mon Sep 17 00:00:00 2001 From: Ghislain MARY Date: Tue, 6 Nov 2018 11:43:19 +0100 Subject: [PATCH] Generate RPM specfile only when targeting Linux platform. --- build/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/CMakeLists.txt b/build/CMakeLists.txt index c5e547e..56303cc 100644 --- a/build/CMakeLists.txt +++ b/build/CMakeLists.txt @@ -42,7 +42,9 @@ message("-- Package file name is ${CPACK_PACKAGE_FILE_NAME}" ) set(CPACK_SOURCE_PACKAGE_FILE_NAME ${CPACK_PACKAGE_FILE_NAME}) -configure_file("rpm/bcg729.spec.cmake" "${PROJECT_SOURCE_DIR}/bcg729.spec" @ONLY) +if(UNIX AND NOT APPLE AND NOT ANDROID) + configure_file("rpm/bcg729.spec.cmake" "${PROJECT_SOURCE_DIR}/bcg729.spec" @ONLY) +endif() include(CPack)