diff --git a/CMakeLists.txt b/CMakeLists.txt index 31d4800..c0a886b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,8 +127,10 @@ ELSE() FIND_PACKAGE(OpenAL) IF(USE_SDL2) FIND_PACKAGE(SDL2) + set(SDL_LIBRARY SDL2::SDL2) ELSE() FIND_PACKAGE(SDL) + set(SDL_LIBRARY SDL::SDL) ENDIF() LIST(APPEND OALWRAPPER_INCLUDE_PATHS diff --git a/CMakeScripts/FindVorbis.cmake b/CMakeScripts/FindVorbis.cmake index 36aa2c1..e8429ec 100644 --- a/CMakeScripts/FindVorbis.cmake +++ b/CMakeScripts/FindVorbis.cmake @@ -80,4 +80,4 @@ ENDIF() # handle the QUIETLY and REQUIRED arguments and set XXX_FOUND to TRUE if all listed variables are TRUE INCLUDE(FindPackageHandleStandardArgs) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(VORBIS DEFAULT_MSG VORBIS_LIBRARIES VORBIS_INCLUDE_DIR) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(Vorbis DEFAULT_MSG VORBIS_LIBRARIES VORBIS_INCLUDE_DIR) diff --git a/CMakeScripts/FindVorbisFile.cmake b/CMakeScripts/FindVorbisFile.cmake index b16c69b..32aabd2 100644 --- a/CMakeScripts/FindVorbisFile.cmake +++ b/CMakeScripts/FindVorbisFile.cmake @@ -88,4 +88,4 @@ ENDIF() # handle the QUIETLY and REQUIRED arguments and set XXX_FOUND to TRUE if all listed variables are TRUE INCLUDE(FindPackageHandleStandardArgs) -FIND_PACKAGE_HANDLE_STANDARD_ARGS(VORBISFILE DEFAULT_MSG VORBISFILE_LIBRARIES VORBISFILE_INCLUDE_DIR) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(VorbisFile DEFAULT_MSG VORBISFILE_LIBRARIES VORBISFILE_INCLUDE_DIR)