Skip to content

Instantly share code, notes, and snippets.

@zrax
Created September 3, 2020 17:29
Show Gist options
  • Save zrax/691262c41b9e1a1f812e2dcea61d482a to your computer and use it in GitHub Desktop.
Save zrax/691262c41b9e1a1f812e2dcea61d482a to your computer and use it in GitHub Desktop.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 582b808..d7c2e1b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -52,7 +52,7 @@ endif()
add_subdirectory(oshw-${OSHW})
-add_executable(${TWORLD_EXE} WIN32 tworld.c)
+add_executable(${TWORLD_EXE} tworld.c)
target_sources(${TWORLD_EXE} PRIVATE
cmdline.h
cmdline.c
diff --git a/oshw-qt/CMakeLists.txt b/oshw-qt/CMakeLists.txt
index c885ecd..1b222e5 100644
--- a/oshw-qt/CMakeLists.txt
+++ b/oshw-qt/CMakeLists.txt
@@ -29,6 +33,7 @@ target_include_directories(oshw-qt PRIVATE
${SDL_INCLUDE_DIR}
)
+string(REPLACE "-mwindows;" "" SDL_LIBRARY "${SDL_LIBRARY}")
target_link_libraries(oshw-qt PUBLIC
${SDL_LIBRARY}
Qt5::Core
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment