zstd icon indicating copy to clipboard operation
zstd copied to clipboard

Cmake building static library fails on MSVC

Open dimitre opened this issue 2 months ago • 1 comments

I'm trying to compile it as a static library for multiple platforms and it fails on MSVC with the error " CXX: needs to be enabled before use."

with this tiny change I can compile correctly https://github.com/facebook/zstd/compare/dev...dimitre:zstd:dev

related runner https://github.com/dimitre/ofLibs/actions/runs/18823615977/job/53702890010

dimitre avatar Oct 26 '25 21:10 dimitre

this seems to be the problematic line in Cmake

ADD_ZSTD_COMPILATION_FLAGS(ON ZSTD_ENABLE_CXX ON)

dimitre avatar Nov 09 '25 18:11 dimitre