aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules
diff options
context:
space:
mode:
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")