Skip to content

CMAKE tests generation under windows leads to linking error #2286

@vtellier

Description

@vtellier

While trying to execute the tests I struggled a bit with their compilation.
The documentation (tests/README.md) says:

Building tests in Windows

Install CMAKE
CMD> CMAKE libzmq/tests
CMD> tests.sln
CMD> # build all projects in the solution

However I was faicing linking error on libzmq.lib.
After researches I found out these comments in tests/CMakeLists.txt:

# This is the output for Debug dynamic builds on Visual Studio 6.0
# You should provide the correct directory, don't know how to do it automatically
find_path(LIBZMQ_PATH "libzmq.lib" PATHS "../bin/Win32/Debug/v120/dynamic")

I just changed v120 to v140 as I am under Visual studio 2015 and it worked.
The thing is that it was the first time I used CMAKE so I spent some time trying to spot it.

Would it be possible to add a line about that in tests/README.md, or to make this fully automatic?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions