aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2022-06-22 08:02:30 +1000
committerfuzzard <fuzzard@kodi.tv>2022-06-22 08:02:30 +1000
commit6a0bb7b34de704f6bae8b3d349b88d74f6cd494f (patch)
tree2ccc5916ee86634d82797ab3f506cb684a6f18fe /cmake/modules
parent9543be316a96bcdd8be314909afe226621447869 (diff)
[cmake] libdvd findmodule fix unset variables
libdvd doesnt use SETUP_BUILD_VARS macro, so some variables arent set. Manually set the required vars.
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/FindLibDvd.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmake/modules/FindLibDvd.cmake b/cmake/modules/FindLibDvd.cmake
index 8679917bcc..8a06776108 100644
--- a/cmake/modules/FindLibDvd.cmake
+++ b/cmake/modules/FindLibDvd.cmake
@@ -74,7 +74,11 @@ else()
if(ENABLE_DVDCSS)
list(APPEND dvdlibs libdvdcss)
endif()
- set(DEPENDS_TARGETS_DIR ${CMAKE_SOURCE_DIR}/tools/depends/target)
+
+ # Set variables normally set in SETUP_BUILD_VARS macro
+ set(LIB_TYPE "target")
+ set(PROJECTSOURCE ${CMAKE_SOURCE_DIR})
+ set(DEP_LOCATION "${DEPENDS_PATH}")
foreach(dvdlib ${dvdlibs})
@@ -82,7 +86,7 @@ else()
# Variables required being set for clean get_versionfile_data use
set(MODULE_LC ${dvdlib})
- set(PROJECTSOURCE ${CMAKE_SOURCE_DIR})
+
get_versionfile_data()
# allow user to override the download URL with a local tarball