aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/target/ffmpeg/CMakeLists.txt
diff options
context:
space:
mode:
authornotspiff <spiff@kodi.tv>2018-02-12 13:04:42 +0100
committernotspiff <spiff@kodi.tv>2018-02-12 13:06:43 +0100
commit2838ca28612a8923b1b6e9937f9a560a40b04a11 (patch)
tree04517dae0524b9e8314fc266d0f8a4298ec06b78 /tools/depends/target/ffmpeg/CMakeLists.txt
parenta7b69100924d537caac246a9d0980e27d0f18ffd (diff)
changed: forward cmake compilers to ffmpeg
not only when cross compiling. you'd expect ffmpeg built with clang if you configure cmake for clang.
Diffstat (limited to 'tools/depends/target/ffmpeg/CMakeLists.txt')
-rw-r--r--tools/depends/target/ffmpeg/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/depends/target/ffmpeg/CMakeLists.txt b/tools/depends/target/ffmpeg/CMakeLists.txt
index e19bd2d011..51e4b6b807 100644
--- a/tools/depends/target/ffmpeg/CMakeLists.txt
+++ b/tools/depends/target/ffmpeg/CMakeLists.txt
@@ -4,13 +4,13 @@ cmake_minimum_required(VERSION 2.8)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR})
-set(ffmpeg_conf "")
+set(ffmpeg_conf --cc=${CMAKE_C_COMPILER} --cxx=${CMAKE_CXX_COMPILER})
if(CROSSCOMPILING)
set(pkgconf "PKG_CONFIG_LIBDIR=${DEPENDS_PATH}/lib/pkgconfig")
list(APPEND ffmpeg_conf --pkg-config=${PKG_CONFIG_EXECUTABLE} --pkg-config-flags=--static)
list(APPEND ffmpeg_conf --enable-cross-compile --cpu=${CPU} --arch=${CPU} --target-os=${OS})
- list(APPEND ffmpeg_conf --cc=${CMAKE_C_COMPILER} --cxx=${CMAKE_CXX_COMPILER} --ar=${CMAKE_AR} --strip=${CMAKE_STRIP})
+ list(APPEND ffmpeg_conf --ar=${CMAKE_AR} --strip=${CMAKE_STRIP})
message(STATUS "CROSS: ${ffmpeg_conf}")
endif()