authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-25 16:18:16-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-08-28 17:07:21-07:00
logaee53e2ffdd8c68a9b505f8aaad318bfbb459965
treec62ac327665ad099b407e0fb6456e1450031af1f
parent3d9b6cfcc9341cef40a8a525a4acf8be8b81992c

CMake: add dummy install command

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

1 files changed, 6 insertions(+), 0 deletions(-)

CMakeLists.txt+6
...@@ -1030,6 +1030,12 @@ elseif(MINGW)...@@ -1030,6 +1030,12 @@ elseif(MINGW)
1030 target_link_libraries(zig2 ntdll)1030 target_link_libraries(zig2 ntdll)
1031endif()1031endif()
10321032
1033# Dummy install command so that the "install" target is not missing.
1034# This is redundant from the "stage3" custom target below.
1035if(NOT ZIG_SKIP_INSTALL_LIB_FILES)
1036 install(FILES "lib/compiler_rt.zig" DESTINATION "lib/zig")
1037endif()
1038
1033set(ZIG_INSTALL_ARGS "build"1039set(ZIG_INSTALL_ARGS "build"
1034 --zig-lib-dir "${CMAKE_SOURCE_DIR}/lib"1040 --zig-lib-dir "${CMAKE_SOURCE_DIR}/lib"
1035 --prefix "${CMAKE_INSTALL_PREFIX}"1041 --prefix "${CMAKE_INSTALL_PREFIX}"