mirror of
https://github.com/reactos/CMake.git
synced 2025-01-19 09:54:02 +00:00
CMP0052: Test that include dirs in install locations cause no warnings.
This commit is contained in:
parent
9e0b3153fa
commit
5baa81592b
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user