diff options
author | Cristian Adam <cristian.adam@gmail.com> | 2019-09-24 22:08:15 (GMT) |
---|---|---|
committer | Cristian Adam <cristian.adam@gmail.com> | 2019-10-01 16:33:40 (GMT) |
commit | e6e189e02bb6e3efafc5d635edf5eb9688291e71 (patch) | |
tree | 02a1d57f1c6163db9a9f7e4595a8518b64d1d787 /Tests/RunCMake/VS10Project/VsPrecompileHeadersReuseFromCompilePDBName.cmake | |
parent | ec16afc9e8aed8aebd387c416af5b5eef4ad337a (diff) | |
download | CMake-e6e189e02bb6e3efafc5d635edf5eb9688291e71.zip CMake-e6e189e02bb6e3efafc5d635edf5eb9688291e71.tar.gz CMake-e6e189e02bb6e3efafc5d635edf5eb9688291e71.tar.bz2 |
PCH: Report error when setting COMPILE_PDB_NAME property
Reusable precompile headers require specific COMPILE_PDB_NAME property
values. Report error if the user tries to set a different value.
Diffstat (limited to 'Tests/RunCMake/VS10Project/VsPrecompileHeadersReuseFromCompilePDBName.cmake')
-rw-r--r-- | Tests/RunCMake/VS10Project/VsPrecompileHeadersReuseFromCompilePDBName.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/VS10Project/VsPrecompileHeadersReuseFromCompilePDBName.cmake b/Tests/RunCMake/VS10Project/VsPrecompileHeadersReuseFromCompilePDBName.cmake new file mode 100644 index 0000000..ec11008 --- /dev/null +++ b/Tests/RunCMake/VS10Project/VsPrecompileHeadersReuseFromCompilePDBName.cmake @@ -0,0 +1,9 @@ +project(VsPrecompileHeadersReuseFromCompilePDBName CXX) + +add_library(a SHARED empty.cxx) +target_precompile_headers(a PRIVATE <windows.h>) + +add_library(b SHARED empty.cxx) +target_precompile_headers(b REUSE_FROM a) + +set_target_properties(b PROPERTIES COMPILE_PDB_NAME b) |