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} )
|
||||||
set_target_properties( ${name} PROPERTIES
|
if (WIN32)
|
||||||
OUTPUT_NAME ${LIB_NAME}s )
|
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
|
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