]> git.ipfire.org Git - thirdparty/zstd.git/commit
[cmake] Fix up PR #3716
authorNick Terrell <terrelln@fb.com>
Thu, 14 Mar 2024 19:12:55 +0000 (12:12 -0700)
committerNick Terrell <nickrterrell@gmail.com>
Mon, 18 Mar 2024 13:18:51 +0000 (09:18 -0400)
commita595e5812a5c7e4ac47839383f931fb8000623f0
treec63d79379a30014443f263b35b5060c946633d02
parent79cd0ff7120ed05ac9e52ba4c7a484752be4d758
[cmake] Fix up PR #3716

* Make a variable `PublicHeaders` for Zstd's public headers
* Add `PublicHeaders` to `Headers`, which was missing
* Only export `${LIBRARY_DIR}` publicly, not `common/`
* Switch the `target_include_directories()` to `INTERFACE` because zstd uses relative includes internally, so doesn't need any include directories to build
* Switch installation to use the `PublicHeaders` variable, and test that the right headers are installed
build/cmake/lib/CMakeLists.txt