polysquare / cmake-unit

A unit testing framework for CMake
MIT License
36 stars 5 forks source link

I have trouble with getting cmake-unit and dependencies. #109

Open Knitschi opened 7 years ago

Knitschi commented 7 years ago

Hi smspillaz,

I would like to try out the cmake-unit project, but I have trouble "installing" it. When I download the project and simply add it to my project it misses the file conanbuildinfo.cmake. It would be very helpful if you had some instructions on how to correctly get your package and its dependencies at the top of the documentation.

From the conan.py file, I take that the missing files are retrieved using the conan package manager. I have only beginners knowledge of python and none of conan. I am working with python 3.4 on windows btw. So this is what I tried so far:

Requirements
    cmake-call-function/master@smspillaz/cmake-call-function from conan.io
    cmake-forward-arguments/master@smspillaz/cmake-forward-arguments from conan.io
    cmake-forward-cache/master@smspillaz/cmake-forward-cache from conan.io
    cmake-include-guard/master@smspillaz/cmake-include-guard from conan.io
    cmake-opt-arg-parsing/master@smspillaz/cmake-opt-arg-parsing from conan.io
    cmake-spacify-list/master@smspillaz/cmake-spacify-list from conan.io
Packages
    cmake-call-function/master@smspillaz/cmake-call-function:c6adec7915b5bae7abf89c59546b0a540bfb7601
    cmake-forward-arguments/master@smspillaz/cmake-forward-arguments:c6adec7915b5bae7abf89c59546b0a540bfb7601
    cmake-forward-cache/master@smspillaz/cmake-forward-cache:c6adec7915b5bae7abf89c59546b0a540bfb7601
    cmake-include-guard/master@smspillaz/cmake-include-guard:5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9
    cmake-opt-arg-parsing/master@smspillaz/cmake-opt-arg-parsing:c6adec7915b5bae7abf89c59546b0a540bfb7601
    cmake-spacify-list/master@smspillaz/cmake-spacify-list:34a1ee842030afb1f43dc95a615b35ab928736f2

WARN: Can't find a 'cmake-include-guard/master@smspillaz/cmake-include-guard' package for the specified options and settings:
- Settings:
- Options: dev=False

ERROR: Missing prebuilt package for 'cmake-include-guard/master@smspillaz/cmake-include-guard'
Try to build it from sources with "--build cmake-include-guard"
Or read "http://docs.conan.io/en/latest/faq/troubleshooting.html#error-missing-prebuilt-package"

Do you have any ideas what else do I need to do to make it work? Thank you for your time.

smspillaz commented 7 years ago

Hmm, you shouldn't be having that problem. I haven't worked on this for some time, but I'll try it out tonight and see if I can get it to work.

smspillaz commented 7 years ago

@Knitschi I just rebuilt the branch on CI and it looks like everything downloaded fine, so I'm not sure what was causing your problem.

Nonetheless, it looks like conan.io is shutting down their hosting and I'll need to migrate to bintray: http://docs.conan.io/en/latest/move_to_bintray.html

Knitschi commented 7 years ago

Thank you for your response. I think I will give this more time in a couple of weeks. For now I do without unit tests.