PchInstantiateTemplates.cmake 308 B

12345678910111213141516
  1. enable_language(C)
  2. set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
  3. add_library(empty empty.c)
  4. target_precompile_headers(empty PUBLIC
  5. <stdio.h>
  6. <string.h>
  7. )
  8. add_library(foo foo.c)
  9. target_precompile_headers(foo PUBLIC
  10. <stdio.h>
  11. <string.h>
  12. )
  13. set_target_properties(foo PROPERTIES PCH_INSTANTIATE_TEMPLATES OFF)