mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-02 07:23:53 +03:00
Find SDL_mixer.h instead of assuming it's in the same location as SDL.h
This commit is contained in:
@@ -212,7 +212,8 @@ else()
|
|||||||
target_link_libraries(VVVVVV SDL2 SDL2_mixer)
|
target_link_libraries(VVVVVV SDL2 SDL2_mixer)
|
||||||
else()
|
else()
|
||||||
message(STATUS "No TARGET SDL2::SDL2, or SDL2, using variables")
|
message(STATUS "No TARGET SDL2::SDL2, or SDL2, using variables")
|
||||||
target_include_directories(VVVVVV PUBLIC "$<BUILD_INTERFACE:${SDL2_INCLUDE_DIRS}>")
|
find_path(SDL2_MIXER_INCLUDE_DIRS NAMES SDL_mixer.h PATH_SUFFIXES SDL2)
|
||||||
|
target_include_directories(VVVVVV PUBLIC "$<BUILD_INTERFACE:${SDL2_INCLUDE_DIRS}>" ${SDL2_MIXER_INCLUDE_DIRS})
|
||||||
target_link_libraries(VVVVVV ${SDL2_LIBRARIES} SDL2_mixer)
|
target_link_libraries(VVVVVV ${SDL2_LIBRARIES} SDL2_mixer)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user