mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Previously the command considered non-absolute source file paths relative to the associated target on the LHS. This causes problems in incremental builds where files are added from subdirectories and forces users to workaround by manually converting to absolute paths. Change this to enable more intuitive usage by projects. Fixes #17981
22 lines
1.0 KiB
Plaintext
22 lines
1.0 KiB
Plaintext
CMake Warning \(dev\) at CMP0076-WARN/CMakeLists.txt:2 \(target_sources\):
|
|
Policy CMP0076 is not set: target_sources\(\) command converts relative paths
|
|
to absolute. Run "cmake --help-policy CMP0076" for policy details. Use
|
|
the cmake_policy command to set the policy and suppress this warning.
|
|
|
|
An interface source of target "publiclib" has a relative path.
|
|
This warning is for project developers. Use -Wno-dev to suppress it.
|
|
|
|
CMake Warning \(dev\) at CMP0076-WARN/CMakeLists.txt:2 \(target_sources\):
|
|
Policy CMP0076 is not set: target_sources\(\) command converts relative paths
|
|
to absolute. Run "cmake --help-policy CMP0076" for policy details. Use
|
|
the cmake_policy command to set the policy and suppress this warning.
|
|
|
|
A private source from a directory other than that of target "publiclib" has
|
|
a relative path.
|
|
This warning is for project developers. Use -Wno-dev to suppress it.
|
|
|
|
CMake Error in CMakeLists.txt:
|
|
Target "publiclib" contains relative path in its INTERFACE_SOURCES:
|
|
|
|
"CMP0076-WARN/subdir_empty_1.cpp"
|