Fixes #952 on non-WIN32 platforms. Modify WIN32 static library to tidy_static instead of tidys.
This commit is contained in:
parent
089659cafc
commit
92414e8b68
|
@ -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 ()
|
||||
|
|
Loading…
Reference in a new issue