[cmake-developers] [CMake 0014495]: Spurious error about non-existent INTERFACE_INCLUDE_DIRECTORIES of IMPORTED target
Mantis Bug Tracker
mantis at public.kitware.com
Sun Oct 20 12:55:53 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=14495
======================================================================
Reported By: Nick Hutchinson
Assigned To:
======================================================================
Project: CMake
Issue ID: 14495
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-10-21 05:55 NZDT
Last Modified: 2013-10-21 05:55 NZDT
======================================================================
Summary: Spurious error about non-existent
INTERFACE_INCLUDE_DIRECTORIES of IMPORTED target
Description:
CMake seems to demand that the directories referenced by the
INTERFACE_INCLUDE_DIRECTORIES property of an IMPORTED target can be found at
configure-time. This is quite unhelpful if those directories are only generated
generated as part of the build.
You get the following error:
> Imported target "XXX" includes non-existent path
>
> "YYY"
>
> in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
>
> * The path was deleted, renamed, or moved to another location.
>
> * An install or uninstall procedure did not complete successfully.
>
> * The installation package was faulty and references files it does not
> provide.
Workaround is add a `file(MAKE_DIRECTORY YYY)` command to the CMakeLists.txt
file.
Steps to Reproduce:
> cat <<-EOF > CMakeLists.txt
cmake_minimum_required(VERSION 2.8.12)
add_library(foo STATIC IMPORTED GLOBAL)
set_property(TARGET foo PROPERTY INTERFACE_INCLUDE_DIRECTORIES
"${CMAKE_CURRENT_BINARY_DIR}/include")
EOF
> cmake -GNinja .
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-10-21 05:55 Nick HutchinsonNew Issue
======================================================================
More information about the cmake-developers
mailing list