Added speech recognition demo package for centOS (#682)
authorPiotr Rozen <piotr.rozen@intel.com>
Mon, 1 Jun 2020 11:41:45 +0000 (13:41 +0200)
committerGitHub <noreply@github.com>
Mon, 1 Jun 2020 11:41:45 +0000 (14:41 +0300)
inference-engine/cmake/dependencies.cmake

index 0fda3af0e2b6e97a96595fcd2f92633644f5f540..c4950005975a656cbaa9d01013878a648450fbba 100644 (file)
@@ -309,16 +309,24 @@ if (ENABLE_SPEECH_DEMO)
     if(DEFINED IE_PATH_TO_DEPS)
         if (WIN32 AND X86_64)
             RESOLVE_DEPENDENCY(SPEECH_LIBS_AND_DEMOS
-                    ARCHIVE_WIN "speech_demo_1.0.0.740_windows.zip"
+                    ARCHIVE_WIN "speech_demo_1.0.0.746_windows.zip"
                     VERSION_REGEX ".*_([0-9]+.[0-9]+.[0-9]+.[0-9]+).*"
-                    TARGET_PATH "${TEMP}/speech_demo_1.0.0.740")
+                    TARGET_PATH "${TEMP}/speech_demo_1.0.0.746")
             debug_message(STATUS "speech_libs_and_demos=" ${SPEECH_LIBS_AND_DEMOS})
         elseif (LINUX AND X86_64)
-            RESOLVE_DEPENDENCY(SPEECH_LIBS_AND_DEMOS
-                    ARCHIVE_LIN "speech_demo_1.0.0.740_linux.tgz"
+            if (${LINUX_OS_NAME} STREQUAL "CentOS 7" OR CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9")
+                RESOLVE_DEPENDENCY(SPEECH_LIBS_AND_DEMOS
+                    ARCHIVE_LIN "speech_demo_1.0.0.746_centos.tgz"
                     VERSION_REGEX ".*_([0-9]+.[0-9]+.[0-9]+.[0-9]+).*"
-                    TARGET_PATH "${TEMP}/speech_demo_1.0.0.740")
-            debug_message(STATUS "speech_libs_and_demos=" ${SPEECH_LIBS_AND_DEMOS})
+                    TARGET_PATH "${TEMP}/speech_demo_1.0.0.746")
+                debug_message(STATUS "speech_libs_and_demos=" ${SPEECH_LIBS_AND_DEMOS})
+            else()
+                RESOLVE_DEPENDENCY(SPEECH_LIBS_AND_DEMOS
+                    ARCHIVE_LIN "speech_demo_1.0.0.746_linux.tgz"
+                    VERSION_REGEX ".*_([0-9]+.[0-9]+.[0-9]+.[0-9]+).*"
+                    TARGET_PATH "${TEMP}/speech_demo_1.0.0.746")
+                debug_message(STATUS "speech_libs_and_demos=" ${SPEECH_LIBS_AND_DEMOS})
+            endif()
         else()
             message(FATAL_ERROR "Speech Demo is not available on current platform")
         endif()