--- a/project_files/hwc/CMakeLists.txt Sun Apr 12 00:26:37 2020 +0300
+++ b/project_files/hwc/CMakeLists.txt Fri Apr 17 15:23:22 2020 -0400
@@ -1,6 +1,6 @@
#the usual set of dependencies
find_package(OpenGL REQUIRED)
-find_package(SDL2 REQUIRED)
+find_package(SDL2 REQUIRED CONFIG)
find_package(SDL2_mixer 2 REQUIRED)
find_package(SDL2_net 2 REQUIRED)
find_package(SDL2_image 2 REQUIRED)
@@ -111,7 +111,7 @@
target_link_libraries(hwengine fpcrtl
${LUA_LIBRARY}
${OPENGL_LIBRARY}
- ${SDL2_LIBRARY}
+ ${SDL2_LIBRARIES}
${SDL2_MIXER_LIBRARIES}
${SDL2_NET_LIBRARIES}
${SDL2_IMAGE_LIBRARIES}