Currently, export() is executed at configure-time. One problem with this is that certain exported properties like the link interface may not be complete at the point the export() is encountered leading to an incorrect or incomplete exported representation. Additionally, the generated IMPORTED_LOCATION property may even be incorrect if commands following the export() have an effect on it. Another problem is that it requires the C++ implementation of cmake to be capable of computing the exported information at configure time. This is a limitation on the cleanup and maintenance of the code. At some point in the future, this limitation will be dropped and more implementation will be moved from cmTarget to cmGeneratorTarget.
17 lines
658 B
Plaintext
17 lines
658 B
Plaintext
CMake Warning \(dev\) at CMP0024-WARN.cmake:7 \(include\):
|
|
Policy CMP0024 is not set: Disallow include export result. Run "cmake
|
|
--help-policy CMP0024" for policy details. Use the cmake_policy command to
|
|
set the policy and suppress this warning.
|
|
|
|
The file
|
|
|
|
.*/Tests/RunCMake/include/CMP0024-WARN-build/theTargets.cmake
|
|
|
|
was generated by the export\(\) command. It should not be used as the
|
|
argument to the include\(\) command. Use ALIAS targets instead to refer to
|
|
targets by alternative names.
|
|
|
|
Call Stack \(most recent call first\):
|
|
CMakeLists.txt:3 \(include\)
|
|
This warning is for project developers. Use -Wno-dev to suppress it.
|