Skip to content

Instantly share code, notes, and snippets.

@tomprince
Created December 2, 2010 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomprince/725966 to your computer and use it in GitHub Desktop.
Save tomprince/725966 to your computer and use it in GitHub Desktop.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 598fe9e..c36b29b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -179,11 +179,15 @@ ELSE()
ENDIF()
FIND_LIBRARY(VORBIS_LIBRARY vorbisfile)
-find_path(VORBIS_FILE vorbisfile.h PATH_SUFFIXES vorbis)
-IF(VORBIS_LIBRARY AND VORBIS_FILE)
- MESSAGE(STATUS "Looking for Ogg Vorbis support: found")
-ELSE()
- unset(VORBIS_LIBRARY) # disable the build for this plugin
+IF(VORBIS_LIBRARY)
+ find_path(VORBIS_FILE vorbisfile.h PATH_SUFFIXES vorbis)
+ IF(VORBIS_FILE)
+ MESSAGE(STATUS "Looking for Ogg Vorbis support: found")
+ ELSE()
+ unset(VORBIS_LIBRARY) # disable the build for this plugin
+ ENDIF()
+ENDIF()
+IF(VORBIS_LIBRARY)
MESSAGE(WARNING "Looking for Ogg Vorbis support: not found!")
MESSAGE(WARNING "While no original game data is in OGG format, some mod data is and will need conversion.")
ENDIF()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment