-
Notifications
You must be signed in to change notification settings - Fork 76
Windows vcpkg support #380
Comments
From what I see, there is libpmemobj-cpp 1.6 in vcpkg: https://github.com/microsoft/vcpkg/blob/master/ports/libpmemobj-cpp/portfile.cmake. If you need newer version, we can ping guys from vcpkg to update to 1.7 |
Yes you are right. It would help to update to 1.7 (strings!!!). One thing I noticed is that both the PMDK vcpkg and it seems this one too are missing cmake files once installed. This means find_package doesn't work, and it harder to get running in the Windows cmake toolset - eg for using VS build tools (without full Visual Studio) and Clion. For example, at the end of installing many packages you get this message:
For the time being, this seems to work across Windows and Linux in cmake for PMDK:
as long as you point cmake to the vcpkg cmake file -
So perhaps this issue could be tagged to add cmake support within vcpkg? Its also possible I am missing something again too. PS: For some reason I still have trouble typing vcpkg .. is it just me? Its like a tongue twister for my fingers. |
Support for find_package is indeed missing both for libpmemobj-cpp and PMDK. For libpmemobj-cpp it should be quite easy to add this to vcpkg - we generate appropriate files during build. If this is what you need, you can create a request for vcpkg: https://github.com/microsoft/vcpkg/issues :) PMDK on the other hand does not use CMake as a build system so providing cmake integration would be rather challenging. As for libpmemobj version, I just noted that there is already a PR to update libpmemobj-cpp to 1.7: microsoft/vcpkg#7494 |
Submitted microsoft/vcpkg#7632 v1.7 now installing too. Is it possible to provide cmake targets even if the build system is not cmake? It seems it just helps CMake find the appropriate include/lib dirs, regardless of what built the libraries in the first place. Still fairly new to CMake :-) Will close this one anyway for libpmemobj-cpp. |
In libpmemobj-cpp we have created a cmake script which allows to use fund_package() for libpmemobj: I think it could be possible to distribute this script along with PMDK in vcpkg. We should probably investigate that |
It seems libpmemobj-cpp is not in vcpkg yet. I've spent some time trying to build from source on Windows but getting the toolchain aligned is ... challenging :-)
The text was updated successfully, but these errors were encountered: