d257d68138
The add_custom_command(TARGET) signature only works for targets defined in the current directory. Clarify this in the error message when the target exists but was defined elsewhere. Inspired-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
11 lines
522 B
Plaintext
11 lines
522 B
Plaintext
CMake Warning \(dev\) at CMP0040-WARN-missing-target.cmake:2 \(add_custom_command\):
|
|
Policy CMP0040 is not set: The target in the TARGET signature of
|
|
add_custom_command\(\) must exist. Run "cmake --help-policy CMP0040" for
|
|
policy details. Use the cmake_policy command to set the policy and
|
|
suppress this warning.
|
|
+
|
|
No TARGET 'foobar' has been created in this directory.
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
This warning is for project developers. Use -Wno-dev to suppress it.
|