mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 07:31:03 +08:00
Problem: using targets in CMakeLists.txt creates a corrupted xcode project with cmake (#4041)
* use sources instead of objects only when generating an xcode project Co-authored-by: Stéphane Valès <stephane@vales.fr@users.noreply.github.com> Co-authored-by: stephane vales <vales@ingenuity.io>
This commit is contained in:
parent
e915449184
commit
c098fa3c18
@ -1381,10 +1381,15 @@ else()
|
|||||||
if(MINGW)
|
if(MINGW)
|
||||||
add_library(libzmq-static STATIC ${sources} ${public_headers} ${html-docs} ${readme-docs} ${zmq-pkgconfig}
|
add_library(libzmq-static STATIC ${sources} ${public_headers} ${html-docs} ${readme-docs} ${zmq-pkgconfig}
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/version.rc)
|
${CMAKE_CURRENT_BINARY_DIR}/version.rc)
|
||||||
|
else()
|
||||||
|
if (CMAKE_GENERATOR STREQUAL "Xcode")
|
||||||
|
add_library(libzmq-static STATIC ${sources} ${public_headers} ${html-docs} ${readme-docs}
|
||||||
|
${zmq-pkgconfig} ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
|
||||||
else()
|
else()
|
||||||
add_library(libzmq-static STATIC $<TARGET_OBJECTS:objects> ${public_headers} ${html-docs} ${readme-docs}
|
add_library(libzmq-static STATIC $<TARGET_OBJECTS:objects> ${public_headers} ${html-docs} ${readme-docs}
|
||||||
${zmq-pkgconfig} ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
|
${zmq-pkgconfig} ${CMAKE_CURRENT_BINARY_DIR}/version.rc)
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES "QNX")
|
if(CMAKE_SYSTEM_NAME MATCHES "QNX")
|
||||||
target_link_libraries(libzmq-static m)
|
target_link_libraries(libzmq-static m)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user