Guest User

Untitled

a guest
Jul 16th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 598fe9e..c36b29b 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -179,11 +179,15 @@ ELSE()
  6. ENDIF()
  7.  
  8. FIND_LIBRARY(VORBIS_LIBRARY vorbisfile)
  9. -find_path(VORBIS_FILE vorbisfile.h PATH_SUFFIXES vorbis)
  10. -IF(VORBIS_LIBRARY AND VORBIS_FILE)
  11. - MESSAGE(STATUS "Looking for Ogg Vorbis support: found")
  12. -ELSE()
  13. - unset(VORBIS_LIBRARY) # disable the build for this plugin
  14. +IF(VORBIS_LIBRARY)
  15. + find_path(VORBIS_FILE vorbisfile.h PATH_SUFFIXES vorbis)
  16. + IF(VORBIS_FILE)
  17. + MESSAGE(STATUS "Looking for Ogg Vorbis support: found")
  18. + ELSE()
  19. + unset(VORBIS_LIBRARY) # disable the build for this plugin
  20. + ENDIF()
  21. +ENDIF()
  22. +IF(VORBIS_LIBRARY)
  23. MESSAGE(WARNING "Looking for Ogg Vorbis support: not found!")
  24. MESSAGE(WARNING "While no original game data is in OGG format, some mod data is and will need conversion.")
  25. ENDIF()
Add Comment
Please, Sign In to add comment