Skip to content
Snippets Groups Projects
Commit aae2a1dd authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

changed order of libraries so that the dependencies come after the dependents.

parent 0604fe67
No related branches found
No related tags found
No related merge requests found
......@@ -32,28 +32,28 @@
SET(DOOCS_FOUND 0)
FIND_PATH(DOOCS_DIR libDOOCSapi.so
${CMAKE_CURRENT_LIST_DIR}
/export/doocs/lib
)
set(DOOCS_LIBRARIES DOOCSapi nsl dl pthread m rt ldap)
if (";${DOOCS_FIND_COMPONENTS};" MATCHES ";server;")
FIND_PATH(DOOCS_DIR_SERVER libEqServer.so
if (";${DOOCS_FIND_COMPONENTS};" MATCHES ";zmq;")
FIND_PATH(DOOCS_DIR_ZMQ libDOOCSdzmq.so
${CMAKE_CURRENT_LIST_DIR}
/export/doocs/lib
)
set(DOOCS_LIBRARIES ${DOOCS_LIBRARIES} EqServer)
set(DOOCS_LIBRARIES ${DOOCS_LIBRARIES} DOOCSdzmq)
endif()
if (";${DOOCS_FIND_COMPONENTS};" MATCHES ";zmq;")
FIND_PATH(DOOCS_DIR_ZMQ libDOOCSdzmq.so
if (";${DOOCS_FIND_COMPONENTS};" MATCHES ";server;")
FIND_PATH(DOOCS_DIR_SERVER libEqServer.so
${CMAKE_CURRENT_LIST_DIR}
/export/doocs/lib
)
set(DOOCS_LIBRARIES ${DOOCS_LIBRARIES} DOOCSdzmq)
set(DOOCS_LIBRARIES ${DOOCS_LIBRARIES} EqServer)
endif()
FIND_PATH(DOOCS_DIR libDOOCSapi.so
${CMAKE_CURRENT_LIST_DIR}
/export/doocs/lib
)
set(DOOCS_LIBRARIES ${DOOCS_LIBRARIES} DOOCSapi nsl dl pthread m rt ldap)
# now set the required variables based on the determined DOOCS_DIR
set(DOOCS_INCLUDE_DIRS ${DOOCS_DIR}/include)
set(DOOCS_LIBRARY_DIRS ${DOOCS_DIR}/)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment