CMP0052: Test that include dirs in install locations cause no warnings.

This commit is contained in:
Stephen Kelly authored and Brad King committed 2014-04-17 09:07:59 -04:00
1 parent 9e0b3153fa
commit 5baa81592b
4 files changed
+14

No files matched your search

@@ -0,0 +1 @@
0
@@ -0,0 +1 @@
^$
@@ -0,0 +1,9 @@
add_library(testTarget empty.cpp)
target_include_directories(testTarget INTERFACE "${CMAKE_INSTALL_PREFIX}/dir")
install(TARGETS testTarget EXPORT testTargets
DESTINATION lib
)
install(EXPORT testTargets DESTINATION lib/cmake)
@@ -13,6 +13,9 @@ run_cmake(install_config)
run_cmake(incomplete-genex)
run_cmake(export-NOWARN)
set(RunCMake_TEST_OPTIONS "-DCMAKE_INSTALL_PREFIX=${RunCMake_BINARY_DIR}/DirInInstallPrefix/prefix")
run_cmake(DirInInstallPrefix)
configure_file(
"${RunCMake_SOURCE_DIR}/CMakeLists.txt"
"${RunCMake_BINARY_DIR}/copy/CMakeLists.txt"