Fixes #952 on non-WIN32 platforms. Modify WIN32 static library to tidy_static instead of tidys.

This commit is contained in:
Jim Derry 2021-07-09 20:40:17 -04:00
parent 089659cafc
commit 92414e8b68
1 changed files with 8 additions and 2 deletions

View File

@ -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 ()