From f19db5021361f1cf5780d1d06ceea26b8bf392e6 Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Tue, 30 Jun 2026 21:54:27 +0200 Subject: Defer custom command creation with dotnet_finalize_targets and move NATIVE_DEPS to target_link_dotnet_libraries --- baz/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'baz/CMakeLists.txt') diff --git a/baz/CMakeLists.txt b/baz/CMakeLists.txt index 97387ce..78a418e 100644 --- a/baz/CMakeLists.txt +++ b/baz/CMakeLists.txt @@ -1,4 +1,9 @@ +add_dotnet_target(Baz) + add_dotnet_library(Baz SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/Baz.cs - NATIVE_DEPENDS hello_c +) + +target_link_dotnet_libraries(Baz + NATIVE_DEPS hello_c ) -- cgit v1.2.3