cmTargetPropertyComputer.cxx 643 B

12345678910111213141516171819
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #include "cmTargetPropertyComputer.h"
  4. #include "cmMakefile.h"
  5. #include "cmMessageType.h"
  6. void cmTargetPropertyComputer::IssueLocationPropertyError(
  7. std::string const& tgtName, cmMakefile const& mf)
  8. {
  9. mf.IssueMessage(
  10. MessageType::FATAL_ERROR,
  11. cmStrCat(
  12. "The LOCATION property may not be read from target \"", tgtName,
  13. "\". Use the target name directly with "
  14. "add_custom_command, or use the generator expression $<TARGET_FILE>, "
  15. "as appropriate.\n"));
  16. }