Files
CMake/Tests/MSManifest/Subdir2/check.cmake
Kenney Phillis 7ca13e04fa Windows: Merge user-provided manifests into compiled resource
Previously we merged user-provided manifests only into the manifest file
given to the linker.  Merge them into the manifest file that is compiled
as a resource too.
2020-04-21 08:10:45 -04:00

23 lines
921 B
CMake

file(STRINGS "${exe}" manifest_content1 REGEX "name=\"Kitware.CMake.MSMultipleManifest\"")
if(manifest_content1)
message(STATUS "Expected manifest content found:\n ${manifest_content1}")
else()
message(FATAL_ERROR "Expected manifest content not found in\n ${exe}")
endif()
# Verify Second Manifest Content is inside Executable.
file(STRINGS "${exe}" manifest_content2 REGEX "8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a")
if(manifest_content2)
message(STATUS "Expected manifest content found:\n ${manifest_content2}")
else()
message(FATAL_ERROR "Expected manifest content not found in\n ${exe}")
endif()
# Verify Third Manifest Content is inside Executable.
file(STRINGS "${exe}" manifest_content3 REGEX "<dpiAware>true</dpiAware>")
if(manifest_content3)
message(STATUS "Expected manifest content found:\n ${manifest_content3}")
else()
message(FATAL_ERROR "Expected manifest content not found in\n ${exe}")
endif()