diff options
author | Brad King <brad.king@kitware.com> | 2019-02-04 12:48:54 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-02-04 12:49:01 (GMT) |
commit | a5ec7f868f2c7c9714a525a9872b9eaa528d064b (patch) | |
tree | ac5e514b2dc4f4c455545b42f8088d08a9a0d2a0 /Tests | |
parent | 40e12882609619a902d19b94de442b2874bf7a45 (diff) | |
parent | f5d72be57a00f18ed2b18fc2eb6ccedee3544542 (diff) | |
download | CMake-a5ec7f868f2c7c9714a525a9872b9eaa528d064b.zip CMake-a5ec7f868f2c7c9714a525a9872b9eaa528d064b.tar.gz CMake-a5ec7f868f2c7c9714a525a9872b9eaa528d064b.tar.bz2 |
Merge topic 'vs-wince-deployment'
f5d72be57a VS: Fix deployment for WinCE projects
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2907
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/VS10ProjectWinCE/VsCEDebuggerDeploy-check.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/VS10ProjectWinCE/VsCEDebuggerDeploy-check.cmake b/Tests/RunCMake/VS10ProjectWinCE/VsCEDebuggerDeploy-check.cmake index c66676f..6ab3833 100644 --- a/Tests/RunCMake/VS10ProjectWinCE/VsCEDebuggerDeploy-check.cmake +++ b/Tests/RunCMake/VS10ProjectWinCE/VsCEDebuggerDeploy-check.cmake @@ -13,6 +13,7 @@ endif() set(FoundCEAdditionalFiles FALSE) set(FoundRemoteDirectory FALSE) +set(FoundToolsVersion4 FALSE) file(STRINGS "${vcProjectFile}" lines) foreach(line IN LISTS lines) @@ -20,6 +21,8 @@ foreach(line IN LISTS lines) set(FoundCEAdditionalFiles TRUE) elseif(line MATCHES " *<RemoteDirectory>[A-Za-z0-9\\]+</RemoteDirectory> *$") set(FoundRemoteDirectory TRUE) + elseif(line MATCHES " *<Project +.*ToolsVersion=\"4.0\".*> *$") + set(FoundToolsVersion4 TRUE) endif() endforeach() @@ -32,3 +35,8 @@ if(NOT FoundRemoteDirectory) set(RunCMake_TEST_FAILED "RemoteDirectory not found or not set correctly.") return() endif() + +if(NOT FoundToolsVersion4) + set(RunCMake_TEST_FAILED "Failed to find correct ToolsVersion=\"4.0\" .") + return() +endif() |