mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Find SDL_mixer.h instead of assuming it's in the same location as SDL.h
This commit is contained in:
parent
8f06915c60
commit
9b91047bba
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue