mirror of
https://github.com/collabora/libsurvive.git
synced 2026-08-04 00:51:21 -04:00
cmake: use CMAKE_VS_NUGET_PACKAGE_RESTORE on win32
This commit is contained in:
parent
8898910aa9
commit
af5ecd64f4
2 changed files with 1 additions and 4 deletions
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue