summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMartijn van Beurden <mvanb1@gmail.com>2022-04-27 19:53:13 +0200
committerGitHub <noreply@github.com>2022-04-27 19:53:13 +0200
commit0caf685360f1c06173f5bfd084b8679d517389f9 (patch)
treef989191aa495168398c98c7d4abb28d9c146fd21 /cmake
parent1793632ee6988deb933ff7551fee92134622b558 (diff)
downloadflac-0caf685360f1c06173f5bfd084b8679d517389f9.tar.gz
[CMake] Enable building ogg together with flac (#325)
This reverts the part of commit 2013738 that searched for a local ogg build
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindOgg.cmake8
1 files changed, 2 insertions, 6 deletions
diff --git a/cmake/FindOgg.cmake b/cmake/FindOgg.cmake
index 34407fd4..b60c3526 100644
--- a/cmake/FindOgg.cmake
+++ b/cmake/FindOgg.cmake
@@ -1,17 +1,13 @@
find_package(PkgConfig)
pkg_check_modules(_OGG QUIET ogg)
-file(GLOB _OGG_DIR ../libogg-*)
-
find_path(OGG_INCLUDE_DIR
NAMES "ogg/ogg.h"
- PATHS ${_OGG_INCLUDE_DIRS}
- HINTS "${_OGG_DIR}/include")
+ PATHS ${_OGG_INCLUDE_DIRS})
find_library(OGG_LIBRARY
NAMES ogg libogg
- HINTS ${_OGG_LIBRARY_DIRS}
- HINTS "${_OGG_DIR}/Release")
+ HINTS ${_OGG_LIBRARY_DIRS})
mark_as_advanced(
OGG_INCLUDE_DIR