diff --git a/project/cmake/modules/FindLibDvd.cmake b/project/cmake/modules/FindLibDvd.cmake index a083ddc4ed..82a235de03 100644 --- a/project/cmake/modules/FindLibDvd.cmake +++ b/project/cmake/modules/FindLibDvd.cmake @@ -76,7 +76,7 @@ if(NOT WIN32) endforeach() set(DVDREAD_CFLAGS "${DVDREAD_CFLAGS} -I${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/libdvd/include") - if(KODI_DEPENDSBUILD) + if(CMAKE_CROSSCOMPILING) set(EXTRA_FLAGS "CC=${CMAKE_C_COMPILER}") endif()