From 77134dd947dd43d414e32e466accc4100dc17825 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Sun, 15 Oct 2023 04:33:18 -0600 Subject: [PATCH] Changed to use set instead --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50c38be8..4d2fef4a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,9 +22,16 @@ include(FindFontconfig) if (WIN32) include(cmake/automate-vcpkg.cmake) -# TODO: Try to build on mingw even if its just garbage +# Forced to use MSVC +set(MSVC ON) + +if(MSVC) set(VCPKG_TRIPLET x64-windows-static) set(VCPKG_TARGET_TRIPLET x64-windows-static) +else() +set(VCPKG_TRIPLET x64-mingw-static) +set(VCPKG_TARGET_TRIPLET x64-mingw-static) +endif() vcpkg_bootstrap() vcpkg_install_packages(fontconfig sdl2 zlib bzip2 libpng getopt dirent libusb pthread glew glfw3)