diff options
author | Brad King <brad.king@kitware.com> | 2012-09-25 18:29:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-09-25 19:23:35 (GMT) |
commit | b294457e2b96f40d01a22b867666277495977fa8 (patch) | |
tree | 814a3727937cb809226947f2fdc97e6a9a368e70 /Tests/PDBDirectoryAndName/check_pdbs.cmake | |
parent | 3f60dbf1484575f4c28a15c89e1af071648c8f2d (diff) | |
download | CMake-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.cmake | 10 |
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() |