Open victor1234 opened 1 year ago
@victor1234 Do you know why it fails under Visual Studio?
PR is not complete now, I need 1-2 days
@lemire PR is in draft mode now. I'm still working. It's not ready for review.
This is a comprehensive PR and I would like to discuss whether these changes are suitable for your project. The main goal is to create modern cmake targets that install correctly and are available through various integration methods, making it easier to use the library and build packages for it. In addition, global variables are not used in modern cmake (they are propagated to the main project when the library is integrated via add_subdirectory()
), and all properties should be assigned to each target specifically. As I understand it, all properties ( sanitizer, ASAN_OPTIONS
, __restrict
) should only apply to the streamvbyte
target and not propagate to the main project when linking. Only _ARM_NEON__
should be propagated to the example.
Please answer these questions:
Makefile
support?DCMAKE_INSTALL_PREFIX
in the readme at all, as installation defaults to the standard location where the target can easily found by find_package(streamvbyte)
.streamvbyte
, and which should propagate to the entire project that streamvbyte
is linked to?#include <streamvbyte/streamvbyte.h>
. But this will not be compatible with older versions.
README.md
withCMake
integration instructionsfind_package(streamvbyte)
check toUbuntu 22.04
CI