Skip to content

Commit

Permalink
Add debug info for cs_loader_impl build and solve minor bug in dotnet…
Browse files Browse the repository at this point in the history
… find script.
  • Loading branch information
viferga committed Apr 9, 2020
1 parent 8689da2 commit 2621d9c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/FindDotNET.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if(DOTNET_FOUND)
endif()

# Define dotnet command
option(DOTNET_COMMAND "Path of .NET Core command" dotnet)
set(DOTNET_COMMAND dotnet CACHE FILEPATH "Path of .NET Core command" FORCE)

# Detect dotnet command
execute_process(COMMAND ${DOTNET_COMMAND}
Expand Down
2 changes: 2 additions & 0 deletions source/loaders/cs_loader/netcore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ if(OPTION_BUILD_GUIX)
message(FATAL_ERROR ".NET Core support not implemented in Guix build for versions less than 2.0.")
endif()

message(STATUS "Using DotNet source ${DOTNET_SOURCE} for Guix build.")

# Build without internet access
add_custom_target(${target} ALL
COMMAND ${DOTNET_COMMAND} restore --source ${DOTNET_SOURCE} ${CMAKE_CURRENT_SOURCE_DIR}/source/project.csproj
Expand Down

0 comments on commit 2621d9c

Please sign in to comment.