Skip to content

Commit

Permalink
Add name change for UNIX only (#66)
Browse files Browse the repository at this point in the history
* Add name change for UNIX only

* Change if unix to support apple

Co-authored-by: Tomas Berger <[email protected]>
  • Loading branch information
Togtja and Togtja authored Feb 16, 2021
1 parent ecc60f4 commit 155e173
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<INSTALL_INTERFACE:include>
)
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})

Expand Down

0 comments on commit 155e173

Please sign in to comment.