2024-06-28 05:26:23 +08:00
|
|
|
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
|
|
|
|
2024-07-30 14:08:04 +08:00
|
|
|
foreach(dir IN ITEMS tools/rpath-test-binaries manual-tools/rpath-test-binaries)
|
|
|
|
string(REPLACE "/" "_" logname "execute-rel-${dir}")
|
|
|
|
vcpkg_execute_required_process(
|
|
|
|
COMMAND "${CURRENT_INSTALLED_DIR}/${dir}/rpath-test-tool"
|
2024-06-28 05:26:23 +08:00
|
|
|
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}"
|
|
|
|
OUTPUT_VARIABLE output
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
2024-07-30 14:08:04 +08:00
|
|
|
LOGNAME "${logname}"
|
2024-06-28 05:26:23 +08:00
|
|
|
)
|
2024-07-30 14:08:04 +08:00
|
|
|
if(NOT output STREQUAL "release")
|
|
|
|
message(SEND_ERROR "${dir}: $Actual: '${output}', expected: 'release'")
|
2024-06-28 05:26:23 +08:00
|
|
|
endif()
|
2024-07-30 14:08:04 +08:00
|
|
|
endforeach()
|
|
|
|
|
|
|
|
if(NOT VCPKG_BUILD_TYPE)
|
|
|
|
foreach(dir IN ITEMS tools/rpath-test-binaries/debug manual-tools/rpath-test-binaries/debug debug/tools/rpath-test-binaries)
|
|
|
|
string(REPLACE "/" "_" logname "execute-dbg-${dir}")
|
|
|
|
vcpkg_execute_required_process(
|
|
|
|
COMMAND "${CURRENT_INSTALLED_DIR}/${dir}/rpath-test-tool"
|
|
|
|
WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}"
|
|
|
|
OUTPUT_VARIABLE output
|
|
|
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
|
|
LOGNAME "${logname}"
|
|
|
|
)
|
|
|
|
if(NOT output STREQUAL "debug")
|
|
|
|
message(SEND_ERROR "${dir}: Actual: '${output}', expected: 'debug'")
|
|
|
|
endif()
|
|
|
|
endforeach()
|
2024-06-28 05:26:23 +08:00
|
|
|
endif()
|