From 46639ed2779085270c53486f13a99842c5e0525c Mon Sep 17 00:00:00 2001 From: Vittorio Romeo Date: Tue, 21 Dec 2021 17:32:27 +0100 Subject: [PATCH] Manipulate library names on Windows + Clang --- cmake/Macros.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/Macros.cmake b/cmake/Macros.cmake index 841e7865..e0118eb6 100644 --- a/cmake/Macros.cmake +++ b/cmake/Macros.cmake @@ -102,8 +102,8 @@ macro(sfml_add_library target) else() set_target_properties(${target} PROPERTIES DEBUG_POSTFIX -d) endif() - if (SFML_OS_WINDOWS AND SFML_COMPILER_GCC) - # on Windows/gcc get rid of "lib" prefix for shared libraries, + if (SFML_OS_WINDOWS AND (SFML_COMPILER_GCC OR SFML_COMPILER_CLANG)) + # on Windows + gcc/clang get rid of "lib" prefix for shared libraries, # and transform the ".dll.a" suffix into ".a" for import libraries set_target_properties(${target} PROPERTIES PREFIX "") set_target_properties(${target} PROPERTIES IMPORT_SUFFIX ".a")