Skip to content

Commit

Permalink
cmake: For .Net RID when running examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Sep 9, 2024
1 parent 0b4a0cb commit 4f1d9e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/dotnet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ function(add_dotnet_example FILE_NAME TFM)
add_test(
NAME dotnet_${COMPONENT_NAME}_${EXAMPLE_NAME}_${TFM}
COMMAND ${CMAKE_COMMAND} -E env --unset=TARGETNAME
${DOTNET_EXECUTABLE} run --no-build -c Release ${EXAMPLE_NAME}.csproj
${DOTNET_EXECUTABLE} run --no-build -r ${DOTNET_RID} -c Release ${EXAMPLE_NAME}.csproj
WORKING_DIRECTORY ${DOTNET_EXAMPLE_DIR})
endif()
message(STATUS "Configuring example ${FILE_NAME} done")
Expand Down

0 comments on commit 4f1d9e5

Please sign in to comment.