LOCATION.rst 1.3 KB

123456789101112131415161718192021222324252627
  1. LOCATION
  2. --------
  3. Read-only location of a target on disk.
  4. For an imported target, this read-only property returns the value of
  5. the LOCATION_<CONFIG> property for an unspecified configuration
  6. <CONFIG> provided by the target.
  7. For a non-imported target, this property is provided for compatibility
  8. with CMake 2.4 and below. It was meant to get the location of an
  9. executable target's output file for use in add_custom_command. The
  10. path may contain a build-system-specific portion that is replaced at
  11. build time with the configuration getting built (such as
  12. "$(ConfigurationName)" in VS). In CMake 2.6 and above
  13. add_custom_command automatically recognizes a target name in its
  14. COMMAND and DEPENDS options and computes the target location. In
  15. CMake 2.8.4 and above add_custom_command recognizes generator
  16. expressions to refer to target locations anywhere in the command.
  17. Therefore this property is not needed for creating custom commands.
  18. Do not set properties that affect the location of a target after
  19. reading this property. These include properties whose names match
  20. "(RUNTIME|LIBRARY|ARCHIVE)_OUTPUT_(NAME|DIRECTORY)(_<CONFIG>)?",
  21. ``(IMPLIB_)?(PREFIX|SUFFIX)``, or "LINKER_LANGUAGE". Failure to follow
  22. this rule is not diagnosed and leaves the location of the target
  23. undefined.