summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/include_directories
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-11-26 09:34:44 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-11-26 12:01:29 (GMT)
commit9eedc850eb1419d678bda8137610dba1c289bb6a (patch)
treea34441e8838c489af082ed2b3c1ed6d9027fada9 /Tests/RunCMake/include_directories
parent80790f33114cb6d80dfa0fd139cb2d92608cc68c (diff)
downloadCMake-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.cmake12
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)