[
https://issues.apache.org/jira/browse/PROTON-413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chuck Rolke updated PROTON-413:
-------------------------------
Attachment: proton-413-01.patch
This patch splits the library install target from the executable(s) install
target. The library is tagged with 'EXPORT qpid-proton'. Then the EXPORT is
installed along with a version file.
Proton usage:
* Run cmake with -DCMAKE_INSTALL_PREFIX=P:/install
* then 'make install'
Qpid consumer usage:
* in cpp/src/amqp.cmake use find_package(qpid-proton)
* set path to find proton install: SET PATH=P:\install;%PATH%
* run cmake
Result:
Proton is found:
{noformat}
-- qpid-proton_CONFIG ==
P:/install/lib/qpid-proton.cmake/qpid-proton-config.cmake
-- qpid-proton_CONSIDERED_CONFIGS ==
P:/install/lib/qpid-proton.cmake/qpid-proton-config.cmake
-- qpid-proton_CONSIDERED_VERSIONS == 0.5
-- qpid-proton_DIR == P:/install/lib/qpid-proton.cmake
-- qpid-proton_FOUND == 1
-- qpid-proton_VERSION == 0.5
-- qpid-proton_VERSION_COUNT == 2
-- qpid-proton_VERSION_MAJOR == 0
-- qpid-proton_VERSION_MINOR == 5
-- qpid-proton_VERSION_PATCH == 0
-- qpid-proton_VERSION_TWEAK == 0
{noformat}
Comment:
This is not what I really want to check in yet but it gets a windows build
possible.
> [proton-c] Cmake install does not produce package files that work on windows
> ----------------------------------------------------------------------------
>
> Key: PROTON-413
> URL: https://issues.apache.org/jira/browse/PROTON-413
> Project: Qpid Proton
> Issue Type: Bug
> Components: proton-c
> Affects Versions: 0.5
> Environment: Windows
> Reporter: Chuck Rolke
> Attachments: proton-413-01.patch
>
>
> Installed proton relies on pkg-config to export the library's location to
> consuming projects like Qpid. This doesn't play well on Windows where
> pkg-config is not standard.
> It would be relatively easy to install export files that enable proton to be
> located with find_package(). This feature could be installed in addition to
> the pkg-config files and either could be used to find proton.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira