Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.32
-
fedora 20
-
Patch
Description
The cmake build uses a development component that should allow one to build the libraries/headers needed for a client to build against by running:
mkdir build
cd build
cmake ..
make qpidmessaging
cmake -DCOMPONENT=development -P src/cmake_install.cmake
cmake -DCOMPONENT=runtime -P src/cmake_install.cmake
However, this only installs the header files and then fails due to missing broker related target not existing. None of the libraries are installed.
One problem is that the cmake install command requires the component to be specified after each of the RUNTIME, LIBRARY and ARCHIVE specifications. Because the component specification is missing in all of the RUNTIME and LIBRARY elements, they end up being associated with the "Unspecified" component, and therefore, can only be installed when a component is not specified. This is seen in the generated build/src/cmake_install.cmake file.
The correct syntax for the install statement for a target is as shown for this updated qpidcommon target:
install (TARGETS qpidcommon
RUNTIME DESTINATION ${QPID_INSTALL_BINDIR} COMPONENT ${QPID_COMPONENT_COMMON}
LIBRARY DESTINATION ${QPID_INSTALL_LIBDIR} COMPONENT ${QPID_COMPONENT_COMMON}
ARCHIVE DESTINATION ${QPID_INSTALL_LIBDIR} COMPONENT ${QPID_COMPONENT_COMMON})
Another issue is that the broker targets are grouped together with the runtime component. It should have a separate broker component in order to allow one to build just the client libraries and headers.