From 0defedfd7246fdfc9ecc050691cdf7d3ec2ed2cc Mon Sep 17 00:00:00 2001 From: Angelo Mantellini Date: Thu, 14 Feb 2019 17:05:50 +0100 Subject: [CICN-18] Correct CMake issue in Windows Environment Change-Id: I85455ef8c8c01ac8eac02120096527523bb2e82a Signed-off-by: Angelo Mantellini --- libparc/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libparc/CMakeLists.txt b/libparc/CMakeLists.txt index f7c5fd22..4d42ae0d 100644 --- a/libparc/CMakeLists.txt +++ b/libparc/CMakeLists.txt @@ -147,8 +147,11 @@ set(CPACK_PACKAGE_CONTACT ${CONTACT}) set(CPACK_COMPONENTS_ALL library headers documentation) # Get the version -execute_process(COMMAND bash ${CMAKE_SOURCE_DIR}/scripts/version - OUTPUT_VARIABLE PACKAGE_VERSION) + +if (NOT WIN32) + execute_process(COMMAND bash ${CMAKE_SOURCE_DIR}/scripts/version + OUTPUT_VARIABLE PACKAGE_VERSION) +endif () if (PACKAGE_VERSION) string(STRIP ${PACKAGE_VERSION} PACKAGE_VERSION) -- cgit 1.2.3-korg