Skip to content
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

Error in cppzmqConfig.cmake #3356

Closed
jmpentney opened this issue Apr 27, 2018 · 5 comments
Closed

Error in cppzmqConfig.cmake #3356

jmpentney opened this issue Apr 27, 2018 · 5 comments

Comments

@jmpentney
Copy link

Trying to compile a project that uses ZeroMQ and cppzmq with cmake (version 3.11.1) and Visual Studio 2017. I get the following error:

CMake Error at C:/vcpkg/installed/x64-windows/share/cppzmq/cppzmqConfig.cmake:60 (get_target_property):
INTERFACE_LIBRARY targets may only have whitelisted properties. The
property "LOCATION" is not allowed.
Call Stack (most recent call first):
C:/vcpkg/scripts/buildsystems/vcpkg.cmake:247 (_find_package)
CMakeLists.txt:28 (find_package)

I ran cmake with the following command:

PS> cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake ..

@sivabudh
Copy link

Same issue. Mine is on the Mac.

@JonBoyleCoding
Copy link

This is actually an issue stemming from the original repository: zeromq/cppzmq#209

CMake removed the ability to use the LOCATION property around 3.6 with this usage. It hadn't updated yet. Perhaps a patch can be developed to modify this, although it might be worth waiting for the original repo to fix it.

@kurdybacha
Copy link

zeromq/cppzmq#209 is now fixed.

@sivabudh
Copy link

sivabudh commented Jul 5, 2018

Sounds good. I should try this.

@ras0219-msft
Copy link
Contributor

Should be fixed in #4822. Thanks everyone for chiming in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants