aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAngelo Mantellini <manangel@cisco.com>2019-02-14 17:05:50 +0100
committerAngelo Mantellini <manangel@cisco.com>2019-02-14 17:05:50 +0100
commit0defedfd7246fdfc9ecc050691cdf7d3ec2ed2cc (patch)
tree0a4f12e5a6e1e316f039cfe34f1bb31217ea8338
parent63e47cd7180a46635ed08a80e3b1bcb17c3b8a58 (diff)
[CICN-18] Correct CMake issue in Windows Environment
Change-Id: I85455ef8c8c01ac8eac02120096527523bb2e82a Signed-off-by: Angelo Mantellini <manangel@cisco.com>
-rw-r--r--libparc/CMakeLists.txt7
1 files 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)