diff -r 139a1887f83e -r 7b1d6dfa3173 QTfrontend/CMakeLists.txt --- a/QTfrontend/CMakeLists.txt Wed Sep 07 16:54:58 2022 -0400 +++ b/QTfrontend/CMakeLists.txt Mon Sep 12 10:40:53 2022 -0400 @@ -13,9 +13,9 @@ include(CheckLibraryExists) -find_package(SDL2 REQUIRED) +find_package(SDL2 REQUIRED CONFIG) find_package(SDL2_mixer 2 REQUIRED) #audio in SDLInteraction -include_directories(${SDL2_INCLUDE_DIR}) +include_directories(${SDL2_INCLUDE_DIRS}) include_directories(${SDL2_MIXER_INCLUDE_DIRS}) if(LIBAV_FOUND) @@ -230,12 +230,12 @@ ) list(APPEND HW_LINK_LIBS - ${SDL2_LIBRARY} + ${SDL2_LIBRARIES} ${SDL2_MIXER_LIBRARIES} ) if(WIN32 AND NOT UNIX) - if(NOT SDL2_LIBRARY) + if(NOT SDL2_LIBRARIES) list(APPEND HW_LINK_LIBS SDL2) endif()