Selaa lähdekoodia

Don't try to download deps on unsupported systems

DEPENDCY_FOLDER empty -> don't attempt to download it.
Vincent Lang 9 vuotta sitten
vanhempi
commit
b104434593
1 muutettua tiedostoa jossa 12 lisäystä ja 9 poistoa
  1. 12 9
      CMakeModules/DependencyConfiguration.cmake

+ 12 - 9
CMakeModules/DependencyConfiguration.cmake

@@ -4,20 +4,23 @@ option(DISABLE_BUNDLED_DEPS "Disable the bundled deps on certain platforms" OFF)
 include(FetchDependencies)
 
 if(NOT DISABLE_BUNDLED_DEPS)
+  set(DEPENDCY_FOLDER "")
   if(OPENELEC)
     set(DEPENDCY_FOLDER plexmediaplayer-openelec-codecs)
   elseif(APPLE OR WIN32)
     set(DEPENDCY_FOLDER plexmediaplayer-dependencies-codecs)
   endif()
-  download_deps(
-    "${DEPENDCY_FOLDER}"
-    ARTIFACTNAME konvergo-codecs-depends
-    DIRECTORY dir
-    DEPHASH_VAR DEPS_HASH
-    DYLIB_SCRIPT_PATH ${PROJECT_SOURCE_DIR}/scripts/fix-install-names.py
-  )
-  message("dependencies are: ${dir}")
-  set(DEFAULT_ROOT ${dir})
+  if(NOT (DEPENDCY_FOLDER STREQUAL ""))
+    download_deps(
+      "${DEPENDCY_FOLDER}"
+      ARTIFACTNAME konvergo-codecs-depends
+      DIRECTORY dir
+      DEPHASH_VAR DEPS_HASH
+      DYLIB_SCRIPT_PATH ${PROJECT_SOURCE_DIR}/scripts/fix-install-names.py
+    )
+    message("dependencies are: ${dir}")
+    set(DEFAULT_ROOT ${dir})
+  endif()
 endif(NOT DISABLE_BUNDLED_DEPS)
 
 if(WIN32)