From 92414e8b68705f9d074eca4334fa7155ee6b7351 Mon Sep 17 00:00:00 2001 From: Jim Derry Date: Fri, 9 Jul 2021 20:40:17 -0400 Subject: [PATCH] Fixes #952 on non-WIN32 platforms. Modify WIN32 static library to tidy_static instead of tidys. --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 49f9f9a..677f08a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -383,8 +383,14 @@ endif () #------------------------------------------------------------------------ set(name tidy-static) add_library ( ${name} STATIC ${CFILES} ${HFILES} ${LIBHFILES} ) -set_target_properties( ${name} PROPERTIES - OUTPUT_NAME ${LIB_NAME}s ) +if (WIN32) + set_target_properties( ${name} PROPERTIES + OUTPUT_NAME ${LIB_NAME}_static ) +else () + set_target_properties( ${name} PROPERTIES + OUTPUT_NAME ${LIB_NAME} ) + +endif () if (NOT TIDY_CONSOLE_SHARED) # user wants default static linkage list ( APPEND add_LIBS ${name} ) endif ()