Skip to content

Commit

Permalink
[squash] Change name of import and static library on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
erw7 committed Oct 2, 2019
1 parent c3d18f5 commit cee8643
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Expand Up @@ -380,16 +380,16 @@ target_compile_options(uv_shared PRIVATE ${uv_cflags})
target_include_directories(uv_shared PUBLIC include PRIVATE src)
target_link_libraries(uv_shared ${uv_libraries})
set_target_properties(uv_shared PROPERTIES OUTPUT_NAME "uv")
if(MSVC AND LIBUV_ENABLE_STATIC)
set_target_properties(uv_shared PROPERTIES IMPORT_SUFFIX "_import.lib")
endif()

add_library(uv_static STATIC ${uv_sources})
target_compile_definitions(uv_static PRIVATE ${uv_defines})
target_compile_options(uv_static PRIVATE ${uv_cflags})
target_include_directories(uv_static PUBLIC include PRIVATE src)
target_link_libraries(uv_static ${uv_libraries})
set_target_properties(uv_static PROPERTIES OUTPUT_NAME "uv")
if(MSVC)
set_target_properties(uv_static PROPERTIES PREFIX "lib")
endif()

option(libuv_buildtests "Build the unit tests when BUILD_TESTING is enabled." ON)

Expand Down

0 comments on commit cee8643

Please sign in to comment.