aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEric Joldasov <bratishkaerik@getgoogleoff.me>2024-05-14 19:31:06 +0500
committerEric Joldasov <bratishkaerik@landless-city.net>2024-05-14 23:40:41 +0500
commit1f7ca6b2dfca66032342c82ec25ae28e6ec02e21 (patch)
tree218f87e2d8b87bed9576c178d02148b880bca222 /lib
parent1ffa6a0e799a67631647d8ad7651fc4c2e56897d (diff)
downloadzig-1f7ca6b2dfca66032342c82ec25ae28e6ec02e21.tar.gz
zig-1f7ca6b2dfca66032342c82ec25ae28e6ec02e21.zip
CMake: refactor "zigcpp" target logic
* Localize most of the global properties and functions, for some time they are only needed for "zigcpp" static library (sometimes with PUBLIC keyword, so that it will propagate to zig2): `CMAKE_*_OUTPUT_DIRECTORY` and two calls to `include_directories`. This removes useless flags when building other targets and cleans build log a bit. * Remove `EXE_CXX_FLAGS` variable, instead use more appropriate specific properties and functions for this target. This gives better errors if compiler does not support some of them, and CMake also handles for us duplicate flags. It's also easier to read side-by-side with same flags from build.zig . * Add some comments. Signed-off-by: Eric Joldasov <bratishkaerik@landless-city.net>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions