-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZeroMQConfig.cmake fails if shared libraries are not built #3494
Comments
Thanks for pointing this out. I have opened #3497 to solve this, but I didn't test it. Could you check if the patch solves your issue? |
Thank you Simon. I can confirm that problem no longer happens.
Now CPPZMQ fails further on because it appears to need both static and shared libraries.
Long story short. The fix works!
John Rocha
Software Engineer
Stratovan Corporation
T: 530.746.7970
rocha@stratovan.com<mailto:rocha@stratovan.com> | www.stratovan.com<http://www.stratovan.com>
This message and/or attachments may include information which is intended to be accessed only by authorized recipients. Use, storage and transmission are governed by Stratovan Corporation. Unauthorized review, use, disclosure or distribution is prohibited. If you are not an intended recipient, please contact the sender and destroy all copies of the original message.
From: Simon Giesecke [mailto:notifications@github.com]
Sent: Wednesday, May 8, 2019 2:22 AM
To: zeromq/libzmq <libzmq@noreply.github.com>
Cc: John Rocha <rocha@stratovan.com>; Author <author@noreply.github.com>
Subject: Re: [zeromq/libzmq] ZeroMQConfig.cmake fails if shared libraries are not built (#3494)
Thanks for pointing this out. I have opened #3497<#3497> to solve this, but I didn't test it. Could you check if the patch solves your issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub<#3494 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AJVSCFF5EJD3WMBMGRXJZZTPUKLR5ANCNFSM4HLEKPXQ>.
|
Since cppzmq is a header-only library, there is no need to build it. The build files are only needed for the tests. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description
I found that the ZeroMQConfig.cmake file will not work if the shared libraries are not created. It will fail with the message
This configuration was done using the following cmake command line:
cmake -D WITH_PERF_TOOL=OFF -D ZMQ_BUILD_TESTS=OFF -D CMAKE_INSTALL_PREFIX=..\..\INSTALL\CLEAN -D ENABLE_CPACK=OFF -D BUILD_SHARED=OFF ..\..\libzmq-4.3.1
And then attempting to compile CPPZMQ 4.3.0 using the command line:
cmake -D ZeroMQ_DIR=C:/3rdParty/libzmq/INSTALL/CLEAN/CMake ..\cppzmq-4.3.0
I confirmed that if I removed
-D BUILD_SHARED=OFF
from the ZMQ compile/install then the previous mentioned error would not occur.Environment
Minimal test code / Steps to reproduce the issue
What's the actual result? (include assertion message & call stack if applicable)
See description.
What's the expected result?
Expected result is that the cmake completes without any error when using find_package() for ZeroMQ.
The text was updated successfully, but these errors were encountered: