From: Angelo Mantellini Date: Thu, 14 Feb 2019 16:05:50 +0000 (+0100) Subject: [CICN-18] Correct CMake issue in Windows Environment X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=0defedfd7246fdfc9ecc050691cdf7d3ec2ed2cc;p=cicn.git [CICN-18] Correct CMake issue in Windows Environment Change-Id: I85455ef8c8c01ac8eac02120096527523bb2e82a Signed-off-by: Angelo Mantellini --- 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)