From 1af948fe035b4ed7b1fb378d98d1aea2a2a5d886 Mon Sep 17 00:00:00 2001 From: Guillaume Jacquemin Date: Sun, 27 Aug 2023 21:58:14 +0200 Subject: [PATCH] CMakeLists: add potential support for MSVC. I won't provide actual support for it because MSVC sucks, but if someone wants to use it or Clang-cl, now they can. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e239333..47f6ce9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,7 +19,9 @@ project(MassBuilderSaveTool) set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/modules/" ${CMAKE_MODULE_PATH}) -set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES}) +if(MINGW) + set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES}) # This _shouldn't_ be needed, but, anything's possible... +endif() set(CORRADE_BUILD_DEPRECATED OFF CACHE BOOL "" FORCE) set(CORRADE_BUILD_STATIC ON CACHE BOOL "" FORCE)