zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit aee53e2ffdd8c68a9b505f8aaad318bfbb459965 (tree)
parent 3d9b6cfcc9341cef40a8a525a4acf8be8b81992c
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Thu, 25 Aug 2022 16:18:16 -0700

CMake: add dummy install command

This makes it so that `ninja install` will work as expected.

Diffstat:
MCMakeLists.txt | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -1030,6 +1030,12 @@ elseif(MINGW) target_link_libraries(zig2 ntdll) endif() +# Dummy install command so that the "install" target is not missing. +# This is redundant from the "stage3" custom target below. +if(NOT ZIG_SKIP_INSTALL_LIB_FILES) + install(FILES "lib/compiler_rt.zig" DESTINATION "lib/zig") +endif() + set(ZIG_INSTALL_ARGS "build" --zig-lib-dir "${CMAKE_SOURCE_DIR}/lib" --prefix "${CMAKE_INSTALL_PREFIX}"