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

This commit is contained in:
Stephen Kelly 2014-04-16 22:49:40 +02:00 committed by Brad King
parent 9e0b3153fa
commit 5baa81592b
4 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1 @@
^$

View File

@ -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)

View File

@ -13,6 +13,9 @@ run_cmake(install_config)
run_cmake(incomplete-genex) run_cmake(incomplete-genex)
run_cmake(export-NOWARN) run_cmake(export-NOWARN)
set(RunCMake_TEST_OPTIONS "-DCMAKE_INSTALL_PREFIX=${RunCMake_BINARY_DIR}/DirInInstallPrefix/prefix")
run_cmake(DirInInstallPrefix)
configure_file( configure_file(
"${RunCMake_SOURCE_DIR}/CMakeLists.txt" "${RunCMake_SOURCE_DIR}/CMakeLists.txt"
"${RunCMake_BINARY_DIR}/copy/CMakeLists.txt" "${RunCMake_BINARY_DIR}/copy/CMakeLists.txt"