summaryrefslogtreecommitdiffstats
path: root/Tests/PDBDirectoryAndName/check_pdbs.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-09-25 18:29:41 (GMT)
committerBrad King <brad.king@kitware.com>2012-09-25 19:23:35 (GMT)
commitb294457e2b96f40d01a22b867666277495977fa8 (patch)
tree814a3727937cb809226947f2fdc97e6a9a368e70 /Tests/PDBDirectoryAndName/check_pdbs.cmake
parent3f60dbf1484575f4c28a15c89e1af071648c8f2d (diff)
downloadCMake-b294457e2b96f40d01a22b867666277495977fa8.zip
CMake-b294457e2b96f40d01a22b867666277495977fa8.tar.gz
CMake-b294457e2b96f40d01a22b867666277495977fa8.tar.bz2
Verify that PDB_(NAME|OUTPUT_DIRECTORY) are honored in test
Teach the PDBDirectoryAndName test to check that the .pdb files appear where expected.
Diffstat (limited to 'Tests/PDBDirectoryAndName/check_pdbs.cmake')
-rw-r--r--Tests/PDBDirectoryAndName/check_pdbs.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/PDBDirectoryAndName/check_pdbs.cmake b/Tests/PDBDirectoryAndName/check_pdbs.cmake
new file mode 100644
index 0000000..89cdb3c
--- /dev/null
+++ b/Tests/PDBDirectoryAndName/check_pdbs.cmake
@@ -0,0 +1,10 @@
+if(NOT "${config}" MATCHES "[Dd][Ee][Bb]")
+ return()
+endif()
+foreach(pdb ${pdbs})
+ if(EXISTS "${pdb}")
+ message(STATUS "PDB Exists: ${pdb}")
+ else()
+ message(SEND_ERROR "PDB MISSING: ${pdb}")
+ endif()
+endforeach()