diff options
-rw-r--r-- | libparc/CMakeLists.txt | 7 |
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) |