summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VS10Project/VsPrecompileHeadersReuseFromCompilePDBName.cmake
blob: ec110080567ef55a833a0c30553492341cc9153b (plain)
1
2
3
4
5
6
7
8
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)