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)
|
set(name tidy-static)
|
||||||
add_library ( ${name} STATIC ${CFILES} ${HFILES} ${LIBHFILES} )
|
add_library ( ${name} STATIC ${CFILES} ${HFILES} ${LIBHFILES} )
|
||||||
|
if (WIN32)
|
||||||
set_target_properties( ${name} PROPERTIES
|
set_target_properties( ${name} PROPERTIES
|
||||||
OUTPUT_NAME ${LIB_NAME}s )
|
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
|
if (NOT TIDY_CONSOLE_SHARED) # user wants default static linkage
|
||||||
list ( APPEND add_LIBS ${name} )
|
list ( APPEND add_LIBS ${name} )
|
||||||
endif ()
|
endif ()
|
||||||
|
|
Loading…
Reference in a new issue