diff --git a/CMakeLists.txt b/CMakeLists.txt index e08b388f..85747f62 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1357,8 +1357,14 @@ else() add_library(libzmq SHARED ${sources} ${public_headers} ${html-docs} ${readme-docs} ${zmq-pkgconfig} ${CMAKE_CURRENT_BINARY_DIR}/version.rc) else() - add_library(libzmq SHARED $ ${public_headers} ${html-docs} ${readme-docs} - ${zmq-pkgconfig} ${CMAKE_CURRENT_BINARY_DIR}/version.rc) + if (CMAKE_GENERATOR STREQUAL "Xcode") + add_library(libzmq SHARED ${sources} ${public_headers} ${html-docs} ${readme-docs} + ${zmq-pkgconfig} ${CMAKE_CURRENT_BINARY_DIR}/version.rc) + else() + add_library(libzmq SHARED $ ${public_headers} ${html-docs} ${readme-docs} + ${zmq-pkgconfig} ${CMAKE_CURRENT_BINARY_DIR}/version.rc) + endif() + endif() # NOTE: the SOVERSION and VERSION MUST be the same as the one generated by libtool! It is NOT the same as the # version of the package.