Skip to content

Commit

Permalink
Merge pull request #16 from rainyl/rm-sys-path-ffmpeg-search
Browse files Browse the repository at this point in the history
exclude system paths from ffmpeg search path
  • Loading branch information
rainyl authored Nov 21, 2024
2 parents 69691f6 + 07f71d1 commit 3da844d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 23 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/apple.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@ jobs:
-DCMAKE_BUILD_TYPE=Release \
-DOPENCV_EXTRA_MODULES_PATH="${{ github.workspace }}/opencv_contrib/modules" \
-DBUILD_TIFF=OFF \
-DWITH_TIFF=OFF \
-DBUILD_OPENJPEG=OFF \
-DWITH_OPENJPEG=OFF \
-DWITH_OPENCL=OFF \
-DWITH_OPENCL_SVM=OFF \
-DWITH_OPENCLAMDBLAS=ON \
-DWITH_OPENCLAMDFFT=ON \
-DWITH_OPENCLAMDBLAS=OFF \
-DWITH_OPENCLAMDFFT=OFF \
-DCMAKE_POLICY_DEFAULT_CMP0074=NEW \
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -114,6 +116,7 @@ jobs:
-DCMAKE_BUILD_TYPE=Release \
-DOPENCV_EXTRA_MODULES_PATH="${{ github.workspace }}/opencv_contrib/modules" \
-DBUILD_TIFF=OFF \
-DWITH_TIFF=OFF \
-DBUILD_OPENJPEG=OFF \
-DWITH_OPENCL=OFF \
-DWITH_OPENCL_SVM=OFF \
Expand Down
20 changes: 0 additions & 20 deletions cmake/ffmpeg-config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,6 @@ macro(ffmpeg_find_component component)
HINTS ${PC_FFMPEG_${component}_INCLUDE_DIRS}
PATHS
"${FFMPEG_ROOT}/include"
~/Library/Frameworks
/Library/Frameworks
/usr/local/include
/usr/include
/sw/include # Fink
/opt/local/include # DarwinPorts
/opt/csw/include # Blastwave
/opt/include
/usr/freeware/include
DOC "FFMPEG component ${component_name} include directory"
)

Expand Down Expand Up @@ -241,17 +232,6 @@ macro(ffmpeg_find_component component)
PATHS
"${FFMPEG_ROOT}/lib"
"${FFMPEG_ROOT}/lib/${FFMPEG_ARCH}"
~/Library/Frameworks
/Library/Frameworks
/usr/local/lib
/usr/local/lib64
/usr/lib
/usr/lib64
/sw/lib
/opt/local/lib
/opt/csw/lib
/opt/lib
/usr/freeware/lib64
"${FFMPEG_ROOT}/bin"
"${FFMPEG_ROOT}/bin/${FFMPEG_ARCH}"
DOC "FFMPEG component ${component_name} location"
Expand Down
2 changes: 1 addition & 1 deletion cmake/ios.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
# command.
#

cmake_minimum_required(VERSION 3.8.0)
cmake_minimum_required(VERSION 3.10.0)

# CMake invokes the toolchain file twice during the first build, but only once during subsequent rebuilds.
# NOTE: To improve single-library build-times, provide the flag "OS_SINGLE_BUILD" as a build argument.
Expand Down

0 comments on commit 3da844d

Please sign in to comment.