0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 07:31:03 +08:00

CMake: fix library name on linux

problem: cmake added a prefix of lib to libzmq, resulting in
liblibzmq.so
solution: set an empty prefix
This commit is contained in:
Anonymous Maarten 2015-10-25 01:11:26 +02:00
parent c5572211e7
commit 89338f43d5

View File

@ -611,7 +611,8 @@ else()
PUBLIC_HEADER "${public_headers}"
VERSION ${ZMQ_VERSION}
SOVERSION "${ZMQ_VERSION_MAJOR}.${ZMQ_VERSION_MINOR}.0"
OUTPUT_NAME "libzmq")
OUTPUT_NAME "libzmq"
PREFIX "")
if(ZMQ_BUILD_FRAMEWORK)
set_target_properties(libzmq PROPERTIES
FRAMEWORK TRUE
@ -629,7 +630,8 @@ else()
set_target_properties(libzmq-static PROPERTIES
PUBLIC_HEADER "${public_headers}"
COMPILE_DEFINITIONS "ZMQ_STATIC"
OUTPUT_NAME "libzmq-static")
OUTPUT_NAME "libzmq-static"
PREFIX "")
endif()
target_link_libraries(libzmq ${CMAKE_THREAD_LIBS_INIT})