From 9b91047bbab724475c7b3cf9d7a2be7a0633f88d Mon Sep 17 00:00:00 2001 From: leo60228 Date: Sun, 7 Jun 2020 16:11:12 -0400 Subject: [PATCH] Find SDL_mixer.h instead of assuming it's in the same location as SDL.h --- desktop_version/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/desktop_version/CMakeLists.txt b/desktop_version/CMakeLists.txt index 65b45f13..e50cf047 100644 --- a/desktop_version/CMakeLists.txt +++ b/desktop_version/CMakeLists.txt @@ -212,7 +212,8 @@ else() target_link_libraries(VVVVVV SDL2 SDL2_mixer) else() message(STATUS "No TARGET SDL2::SDL2, or SDL2, using variables") - target_include_directories(VVVVVV PUBLIC "$") + find_path(SDL2_MIXER_INCLUDE_DIRS NAMES SDL_mixer.h PATH_SUFFIXES SDL2) + target_include_directories(VVVVVV PUBLIC "$" ${SDL2_MIXER_INCLUDE_DIRS}) target_link_libraries(VVVVVV ${SDL2_LIBRARIES} SDL2_mixer) endif() endif()