Skip to content

Commit

Permalink
Disable the Preview SDK message (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky authored Apr 10, 2024
1 parent f6e4b6c commit bb4de09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/FindNetHost.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
execute_process(
COMMAND ${CMAKE_COMMAND} -E env DOTNET_NOLOGO=1 dotnet msbuild FindNetHostDir.proj -t:OutputNetHostDir -nologo
COMMAND ${CMAKE_COMMAND} -E env DOTNET_NOLOGO=1 dotnet msbuild FindNetHostDir.proj -t:OutputNetHostDir -nologo -p:SuppressNETCoreSdkPreviewMessage=true
OUTPUT_VARIABLE NET_HOST_DIR
OUTPUT_STRIP_TRAILING_WHITESPACE
COMMAND_ERROR_IS_FATAL ANY
Expand All @@ -19,4 +19,4 @@ else()
IMPORTED_LOCATION ${NET_HOST_DIR}/libnethost.a)
endif()

target_include_directories(nethost INTERFACE ${NET_HOST_DIR})
target_include_directories(nethost INTERFACE ${NET_HOST_DIR})

0 comments on commit bb4de09

Please sign in to comment.