diff --git a/CMakeLists.txt b/CMakeLists.txt index f058241..0087d49 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -327,13 +327,15 @@ option(BUILD_STATIC_VERSION "Build the static version of the library." ON) if (BUILD_STATIC_VERSION) set(STATIC_ZIPPER_LIBRARY static${ZIPPER_LIBRARY}) add_library (${STATIC_ZIPPER_LIBRARY} STATIC ${ZIPPER_SOURCES} ${MINIZIP_SOURCES}) + if (NOT WIN32) + set_target_properties(${STATIC_ZIPPER_LIBRARY} PROPERTIES OUTPUT_NAME ${ZIPPER_LIBRARY}) + endif() target_include_directories( ${STATIC_ZIPPER_LIBRARY} PUBLIC $ $ ) - set_target_properties(${STATIC_ZIPPER_LIBRARY} PROPERTIES OUTPUT_NAME ${ZIPPER_LIBRARY}) target_link_libraries(${STATIC_ZIPPER_LIBRARY} ${ZLIB_LIBRARIES} ${EXTRA_LIBS}) list(APPEND TARGET_LIST ${STATIC_ZIPPER_LIBRARY})