diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-11-26 09:34:44 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-11-26 12:01:29 (GMT) |
commit | 9eedc850eb1419d678bda8137610dba1c289bb6a (patch) | |
tree | a34441e8838c489af082ed2b3c1ed6d9027fada9 /Tests/RunCMake/include_directories | |
parent | 80790f33114cb6d80dfa0fd139cb2d92608cc68c (diff) | |
download | CMake-9eedc850eb1419d678bda8137610dba1c289bb6a.zip CMake-9eedc850eb1419d678bda8137610dba1c289bb6a.tar.gz CMake-9eedc850eb1419d678bda8137610dba1c289bb6a.tar.bz2 |
Export: Process relative includes after genex evaluation.
In code such as
install(TARGETS ...
INCLUDES DESTINATION $<FOO>include
)
the generator expressions are evaluated at generate-time. Delay
determining whether each entry is a relative path until after
the generator expressions are evaluated. Such relative paths
are based relative to the CMAKE_INSTALL_PREFIX.
Diffstat (limited to 'Tests/RunCMake/include_directories')
-rw-r--r-- | Tests/RunCMake/include_directories/export-NOWARN.cmake | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/RunCMake/include_directories/export-NOWARN.cmake b/Tests/RunCMake/include_directories/export-NOWARN.cmake index 924511d..307ce5a 100644 --- a/Tests/RunCMake/include_directories/export-NOWARN.cmake +++ b/Tests/RunCMake/include_directories/export-NOWARN.cmake @@ -48,3 +48,15 @@ install(TARGETS foo EXPORT FooTargets6 INCLUDES DESTINATION $<INSTALL_INTERFACE:include$<0:>> ) install(EXPORT FooTargets6 DESTINATION lib/cmake) + +install(TARGETS foo EXPORT FooTargets7 + DESTINATION lib + INCLUDES DESTINATION include$<0:> +) +install(EXPORT FooTargets7 DESTINATION lib/cmake) + +install(TARGETS foo EXPORT FooTargets8 + DESTINATION lib + INCLUDES DESTINATION $<0:>include +) +install(EXPORT FooTargets8 DESTINATION lib/cmake) |