cmake: use CMAKE_VS_NUGET_PACKAGE_RESTORE on win32

This commit is contained in:
Simon Zeni 2025-03-11 15:52:42 -04:00
parent 8898910aa9
commit af5ecd64f4
2 changed files with 1 additions and 4 deletions

View file

@ -60,6 +60,7 @@ IF(WIN32)
find_program(NUGET nuget HINTS "${CMAKE_BINARY_DIR}" )
endif()
message("Nuget is found at ${NUGET}")
SET(CMAKE_VS_NUGET_PACKAGE_RESTORE ON)
if (CMAKE_SIZEOF_VOID_P MATCHES 8)
set(WIN_PLATFORM "x64")

View file

@ -244,10 +244,6 @@ foreach(PLUGIN ${PLUGINS})
endif()
endforeach()
IF(WIN32)
add_custom_command(TARGET survive PRE_BUILD COMMAND ${NUGET} restore ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.sln COMMENT "Restoring nuget dependencies")
ENDIF(WIN32)
IF(TARGET CNGFX)
list(APPEND SURVIVE_EXECUTABLES simple_pose_test)
set(simple_pose_test_ADDITIONAL_LIBS CNGFX)