Skip to content

Instantly share code, notes, and snippets.

@alfadur
Created August 30, 2020 12:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alfadur/e8d94701fb4b2145410c2174ff8806fa to your computer and use it in GitHub Desktop.
Save alfadur/e8d94701fb4b2145410c2174ff8806fa to your computer and use it in GitHub Desktop.
diff -r 6832dab555ae QTfrontend/CMakeLists.txt
--- a/QTfrontend/CMakeLists.txt Mon Aug 10 12:56:53 2020 +0300
+++ b/QTfrontend/CMakeLists.txt Sun Aug 30 15:24:36 2020 +0300
@@ -236,7 +236,7 @@
if(WIN32 AND NOT UNIX)
if(NOT SDL2_LIBRARIES)
- list(APPEND HW_LINK_LIBS SDL2)
+ list(APPEND HW_LINK_LIBS SDL2::SDL2)
endif()
list(APPEND HW_LINK_LIBS
diff -r 6832dab555ae misc/libphyslayer/CMakeLists.txt
--- a/misc/libphyslayer/CMakeLists.txt Mon Aug 10 12:56:53 2020 +0300
+++ b/misc/libphyslayer/CMakeLists.txt Sun Aug 30 15:24:36 2020 +0300
@@ -17,7 +17,7 @@
set_target_properties(physlayer PROPERTIES
VERSION 1.0
SOVERSION 1.0)
-target_link_libraries(physlayer ${SDL2_LIBRARIES} lua physfs)
+target_link_libraries(physlayer ${SDL2_LIBRARIES} SDL2::SDL2 lua physfs)
install(TARGETS physlayer RUNTIME DESTINATION ${target_binary_install_dir}
LIBRARY DESTINATION ${target_library_install_dir}
ARCHIVE DESTINATION ${target_library_install_dir})
diff -r 6832dab555ae misc/libphyslayer/physfsrwops.h
--- a/misc/libphyslayer/physfsrwops.h Mon Aug 10 12:56:53 2020 +0300
+++ b/misc/libphyslayer/physfsrwops.h Sun Aug 30 15:24:36 2020 +0300
@@ -25,7 +25,7 @@
#include "physfs.h"
-#include "SDL.h"
+#include "SDL2/SDL.h"
#include "physfscompat.h"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment