1
0

automoc_path_prefix.rst 658 B

12345678910111213
  1. automoc_path_prefix
  2. -------------------
  3. * When using :prop_tgt:`AUTOMOC`, CMake now generates the ``-p`` path prefix
  4. option for ``moc``. This ensures that ``moc`` output files are identical
  5. on different build setups (given, that the headers compiled by ``moc`` are
  6. in an :command:`include directory <target_include_directories>`).
  7. Also it ensures that ``moc`` output files will compile correctly when the
  8. source and/or build directory is a symbolic link.
  9. The ``moc`` path prefix generation behavior can be configured by setting
  10. the new :variable:`CMAKE_AUTOMOC_PATH_PREFIX` variable and/or
  11. :prop_tgt:`AUTOMOC_PATH_PREFIX` target property.