Skip to content

Commit

Permalink
Check for missing libray files
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisn committed Dec 22, 2022
1 parent e62094d commit 2763d91
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/modules/FindLibGD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ find_path(LIBGD_INCLUDE_DIRS gd.h)
find_library(LIBGD_LIBRARIES gd)

if (BUILD_STATIC)
if (LIBGD_LIBRARIES STREQUAL LIBGD_LIBRARIES-NOTFOUND)
message(FATAL_ERROR "libgd library (${CMAKE_FIND_LIBRARY_SUFFIXES}) not found")
endif()

find_package(PNG REQUIRED)

list(
Expand Down
4 changes: 4 additions & 0 deletions cmake/modules/FindLibId3Tag.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ find_path(LIBID3TAG_INCLUDE_DIRS id3tag.h)
find_library(LIBID3TAG_LIBRARIES id3tag)

if(BUILD_STATIC)
if (LIBID3TAG_LIBRARIES STREQUAL LIBID3TAG_LIBRARIES-NOTFOUND)
message(FATAL_ERROR "libid3tag library (${CMAKE_FIND_LIBRARY_SUFFIXES}) not found")
endif()

find_package(ZLIB REQUIRED)

list(
Expand Down
4 changes: 4 additions & 0 deletions cmake/modules/FindLibSndFile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ find_path(LIBSNDFILE_INCLUDE_DIRS sndfile.h)
find_library(LIBSNDFILE_LIBRARIES sndfile)

if (BUILD_STATIC)
if (LIBSNDFILE_LIBRARIES STREQUAL LIBSNDFILE_LIBRARIES-NOTFOUND)
message(FATAL_ERROR "libsndfile library (${CMAKE_FIND_LIBRARY_SUFFIXES}) not found")
endif()

find_package(LibFLAC REQUIRED)
find_package(LibVorbis REQUIRED)
find_package(LibOgg REQUIRED)
Expand Down

0 comments on commit 2763d91

Please sign in to comment.