Skip to content

Commit 2621d9c

Browse files
committed
Add debug info for cs_loader_impl build and solve minor bug in dotnet find script.
1 parent 8689da2 commit 2621d9c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmake/FindDotNET.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ if(DOTNET_FOUND)
2828
endif()
2929

3030
# Define dotnet command
31-
option(DOTNET_COMMAND "Path of .NET Core command" dotnet)
31+
set(DOTNET_COMMAND dotnet CACHE FILEPATH "Path of .NET Core command" FORCE)
3232

3333
# Detect dotnet command
3434
execute_process(COMMAND ${DOTNET_COMMAND}

source/loaders/cs_loader/netcore/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ if(OPTION_BUILD_GUIX)
4040
message(FATAL_ERROR ".NET Core support not implemented in Guix build for versions less than 2.0.")
4141
endif()
4242

43+
message(STATUS "Using DotNet source ${DOTNET_SOURCE} for Guix build.")
44+
4345
# Build without internet access
4446
add_custom_target(${target} ALL
4547
COMMAND ${DOTNET_COMMAND} restore --source ${DOTNET_SOURCE} ${CMAKE_CURRENT_SOURCE_DIR}/source/project.csproj

0 commit comments

Comments
 (0)