summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VsNugetPackageRestore/RunCMakeTest.cmake
blob: 625167c0635a6362d99ed28ca39910251bbf235e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
cmake_policy(SET CMP0053 NEW)
include(RunCMake)

set(RunCMake_TEST_BINARY_DIR ${RunCMake_BINARY_DIR}/VsNugetPackageRestore)
run_cmake(VsNugetPackageRestore)

set(RunCMake_TEST_NO_CLEAN 1)
run_cmake_command(vs-nuget-package-restore-off ${CMAKE_COMMAND} --build ${RunCMake_TEST_BINARY_DIR} --resolve-package-references=off)
run_cmake_command(vs-nuget-package-restore-only ${CMAKE_COMMAND} --build ${RunCMake_TEST_BINARY_DIR} --resolve-package-references=only)
run_cmake_command(vs-nuget-package-restore-on ${CMAKE_COMMAND} --build ${RunCMake_TEST_BINARY_DIR} --resolve-package-references=on)
run_cmake_command(vs-nuget-package-restore-wrong ${CMAKE_COMMAND} --build ${RunCMake_TEST_BINARY_DIR} --resolve-package-references=wrong)
set(RunCMake_TEST_NO_CLEAN 0)