Skip to content

Commit

Permalink
dotnet.cmake: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Jun 12, 2024
1 parent 85a5c2f commit c99a61e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmake/dotnet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,9 @@ configure_file(
COPYONLY)
set(DOTNET_README_DIR "${PROJECT_BINARY_DIR}/dotnet")

configure_file(${PROJECT_SOURCE_DIR}/ortools/dotnet/Directory.Build.props.in ${PROJECT_BINARY_DIR}/dotnet/Directory.Build.props)
configure_file(
${PROJECT_SOURCE_DIR}/ortools/dotnet/Directory.Build.props.in
${PROJECT_BINARY_DIR}/dotnet/Directory.Build.props)

############################
## .Net SNK file ##
Expand Down Expand Up @@ -638,7 +640,8 @@ if(NOT EXAMPLE_FILE_NAME)
OUTPUT ${DOTNET_EXAMPLE_DIR}/timestamp
COMMAND ${CMAKE_COMMAND} -E env --unset=TARGETNAME
${DOTNET_EXECUTABLE} build --nologo -c Release ${EXAMPLE_NAME}.csproj
COMMAND ${CMAKE_COMMAND} -E env --unset=TARGETNAME ${DOTNET_EXECUTABLE} pack -c Release ${EXAMPLE_NAME}.csproj
COMMAND ${CMAKE_COMMAND} -E env --unset=TARGETNAME
${DOTNET_EXECUTABLE} pack --nologo -c Release ${EXAMPLE_NAME}.csproj
COMMAND ${CMAKE_COMMAND} -E touch ${DOTNET_EXAMPLE_DIR}/timestamp
DEPENDS
${DOTNET_EXAMPLE_DIR}/${EXAMPLE_NAME}.csproj
Expand Down

0 comments on commit c99a61e

Please sign in to comment.