mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Fix include paths and compiling in Linux. Externals soundtouch is 1.7.1, while Ubuntu 12.10 is 1.6.x. Externals soundtouch is compiled with integer samples, while ubuntu is compiled with float samples. Float samples is probably the more common route. If you're going to use soundtouch, you should probably use SAMPLETYPE instead of explicitly choosing short. This probably breaks the windows build since its includes aren't setup.
This commit is contained in:
+13
-11
@@ -405,6 +405,19 @@ else()
|
||||
set(LZO lzo2)
|
||||
endif()
|
||||
|
||||
if(OPENAL_FOUND)
|
||||
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
check_lib(SOUNDTOUCH SoundTouch soundtouch/soundtouch.h QUIET)
|
||||
endif()
|
||||
if (SOUNDTOUCH_FOUND)
|
||||
message("Using shared soundtouch")
|
||||
else()
|
||||
message("Using static soundtouch from Externals")
|
||||
add_subdirectory(Externals/soundtouch)
|
||||
include_directories(Externals/soundtouch)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
include(FindSDL2 OPTIONAL)
|
||||
endif()
|
||||
@@ -452,17 +465,6 @@ else()
|
||||
include_directories(Externals/SOIL)
|
||||
endif()
|
||||
|
||||
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
||||
check_lib(SoundTouch SoundTouch SoundTouch.h QUIET)
|
||||
endif()
|
||||
if(SOUNDTOUCH_FOUND)
|
||||
message("Using shared SoundTouch")
|
||||
else()
|
||||
message("Using static SoundTouch from Externals")
|
||||
add_subdirectory(Externals/SoundTouch)
|
||||
include_directories(Externals/SoundTouch)
|
||||
endif()
|
||||
|
||||
# If zlib has already been found on a previous run of cmake don't check again
|
||||
# as the check seems to take a long time.
|
||||
if(NOT ZLIB_FOUND)
|
||||
|
||||
Vendored
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user