summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2022-07-14 13:54:31 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-07-14 13:54:46 (GMT)
commitb051fa5392e20e5e50ae662c840ac0ff8af5b22e (patch)
tree1f4eeb9cf9cf3230acf25c752bb3a43c014a1df2 /Tests
parent7fa5b3eecc60d2a4e66eb7eeff019fd2f1a7d397 (diff)
parentd99d33d7493daa721e96de85240371bf84b9c62b (diff)
downloadCMake-b051fa5392e20e5e50ae662c840ac0ff8af5b22e.zip
CMake-b051fa5392e20e5e50ae662c840ac0ff8af5b22e.tar.gz
CMake-b051fa5392e20e5e50ae662c840ac0ff8af5b22e.tar.bz2
Merge topic 'vs-msb-8028'
d99d33d749 VS: Generate IntDir property for INTERFACE libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7462
Diffstat (limited to 'Tests')
-rw-r--r--Tests/RunCMake/VS10Project/InterfaceLibSources-check.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/VS10Project/InterfaceLibSources-check.cmake b/Tests/RunCMake/VS10Project/InterfaceLibSources-check.cmake
index bcdc101..1701a36 100644
--- a/Tests/RunCMake/VS10Project/InterfaceLibSources-check.cmake
+++ b/Tests/RunCMake/VS10Project/InterfaceLibSources-check.cmake
@@ -5,6 +5,7 @@ if(NOT EXISTS "${vcProjectFile}")
endif()
set(found_iface_h 0)
+set(found_int_dir 0)
file(STRINGS "${vcProjectFile}" lines)
foreach(line IN LISTS lines)
if(line MATCHES "<([A-Za-z0-9_]+) +Include=.*iface\\.h")
@@ -19,7 +20,15 @@ foreach(line IN LISTS lines)
endif()
set(found_iface_h 1)
endif()
+ if(line MATCHES "^ *<IntDir [^<>]+>[^<>]+</IntDir>")
+ set(found_int_dir 1)
+ endif()
endforeach()
if(NOT found_iface_h)
set(RunCMake_TEST_FAILED "iface.h not referenced in\n ${vcProjectFile}")
+ return()
+endif()
+if(NOT found_int_dir)
+ set(RunCMake_TEST_FAILED "No references to IntDir in\n ${vcProjectFile}")
+ return()
endif()