From 27d5a4fa29cfe072c6a9cd52b7cfed54530e947d Mon Sep 17 00:00:00 2001 From: ConnorClancyDeakin Date: Sun, 10 Aug 2025 21:56:20 +1000 Subject: [PATCH 1/2] Changed how sktest is built to work with msys2 --- projects/cmake/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/projects/cmake/CMakeLists.txt b/projects/cmake/CMakeLists.txt index 3de709c2..a2904106 100644 --- a/projects/cmake/CMakeLists.txt +++ b/projects/cmake/CMakeLists.txt @@ -283,6 +283,10 @@ add_custom_command(TARGET sktest add_custom_command(TARGET sktest PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory "${SK_SRC}/test/Resources/" $) +#Note this is what has been changed for test fix +if (MSYS) + target_link_options(sktest PRIVATE -mconsole) +endif() # if (MSYS) # add_custom_command(TARGET sktest From 4537dcb2ceb9c52072aa3eaeb4812e73fad5a632 Mon Sep 17 00:00:00 2001 From: ConnorClancyDeakin Date: Fri, 12 Sep 2025 18:24:31 +1000 Subject: [PATCH 2/2] fixed documentation so it works --- projects/cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/cmake/CMakeLists.txt b/projects/cmake/CMakeLists.txt index a2904106..ea0a4141 100644 --- a/projects/cmake/CMakeLists.txt +++ b/projects/cmake/CMakeLists.txt @@ -283,7 +283,7 @@ add_custom_command(TARGET sktest add_custom_command(TARGET sktest PRE_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory "${SK_SRC}/test/Resources/" $) -#Note this is what has been changed for test fix +#If MSYS is being used force sktest to be a console executable if (MSYS) target_link_options(sktest PRIVATE -mconsole) endif()