aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2022-06-23 18:43:17 +1000
committerfuzzard <fuzzard@kodi.tv>2022-06-25 06:39:47 +1000
commit44f0778f30fae7f0fb010b732b0cf07f658067c4 (patch)
treed1e095877b9dd53d492316ddd212a48a0ce80a76 /cmake/modules
parent86835791f421b2b51b522a88083936b2b8fbcfdf (diff)
[cmake] Findlibdvd further cleanups to insure correct output
Diffstat (limited to 'cmake/modules')
-rw-r--r--cmake/modules/FindLibDvd.cmake16
1 files changed, 8 insertions, 8 deletions
diff --git a/cmake/modules/FindLibDvd.cmake b/cmake/modules/FindLibDvd.cmake
index 66ed0f5c14..8b579bbf6a 100644
--- a/cmake/modules/FindLibDvd.cmake
+++ b/cmake/modules/FindLibDvd.cmake
@@ -75,16 +75,13 @@ else()
list(APPEND dvdlibs libdvdcss)
endif()
- # Set variables normally set in SETUP_BUILD_VARS macro
- set(LIB_TYPE "target")
- set(PROJECTSOURCE ${CMAKE_SOURCE_DIR})
- set(DEP_LOCATION "${DEPENDS_PATH}")
-
- # clear any potentially set variables
- CLEAR_BUILD_VARS()
-
foreach(dvdlib ${dvdlibs})
+ # Set variables normally set in SETUP_BUILD_VARS macro
+ set(LIB_TYPE "target")
+ set(PROJECTSOURCE ${CMAKE_SOURCE_DIR})
+ set(DEP_LOCATION "${DEPENDS_PATH}")
+
string(TOUPPER ${dvdlib} MODULE)
# Variables required being set for clean get_versionfile_data use
@@ -107,6 +104,9 @@ else()
if(VERBOSE)
message(STATUS "${MODULE}_URL: ${${MODULE}_URL}")
endif()
+
+ # clear any potentially set variables
+ CLEAR_BUILD_VARS()
endforeach()
set(DVDREAD_CFLAGS "${DVDREAD_CFLAGS} -I${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/libdvd/include")