Coverage Report

Created: 2026-02-09 06:05

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/CMake/Source/cmTargetPropertyComputer.cxx
Line
Count
Source
1
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2
   file LICENSE.rst or https://cmake.org/licensing for details.  */
3
4
#include "cmTargetPropertyComputer.h"
5
6
#include "cmMakefile.h"
7
#include "cmMessageType.h"
8
9
void cmTargetPropertyComputer::IssueLocationPropertyError(
10
  std::string const& tgtName, cmMakefile const& mf)
11
0
{
12
0
  mf.IssueMessage(
13
0
    MessageType::FATAL_ERROR,
14
0
    cmStrCat(
15
0
      "The LOCATION property may not be read from target \"", tgtName,
16
0
      "\".  Use the target name directly with "
17
0
      "add_custom_command, or use the generator expression $<TARGET_FILE>, "
18
0
      "as appropriate.\n"));
19
0
}