summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-10-24 21:51:08 (GMT)
committerBrad King <brad.king@kitware.com>2022-11-02 17:45:05 (GMT)
commit82c990e9be75496e3d27203d4d092f971bf96179 (patch)
tree5399aa11060c847b6a2794150a8123d539695f7c /Tests/RunCMake/CMakeLists.txt
parentbf9d3fddcc205aa4c7ad0ed8b858064ce9e30702 (diff)
downloadCMake-82c990e9be75496e3d27203d4d092f971bf96179.zip
CMake-82c990e9be75496e3d27203d4d092f971bf96179.tar.gz
CMake-82c990e9be75496e3d27203d4d092f971bf96179.tar.bz2
Tests: Improve RunCMake.GetPrerequisites sample executable selection
Get the runtime dependencies of an executable just built by the toolchain with which tests are running. Previously we used the `cmake` binary itself, but that might have been built for a different ABI than the tested binutils support.
Diffstat (limited to 'Tests/RunCMake/CMakeLists.txt')
-rw-r--r--Tests/RunCMake/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CMakeLists.txt b/Tests/RunCMake/CMakeLists.txt
index 6bf8f3f..ec144c8 100644
--- a/Tests/RunCMake/CMakeLists.txt
+++ b/Tests/RunCMake/CMakeLists.txt
@@ -361,7 +361,7 @@ if(XCODE_VERSION)
set(GeneratorToolset_ARGS -DXCODE_VERSION=${XCODE_VERSION})
endif()
add_RunCMake_test(GeneratorToolset)
-add_RunCMake_test(GetPrerequisites)
+add_RunCMake_test(GetPrerequisites -DSAMPLE_EXE=$<TARGET_FILE:exit_code>)
add_RunCMake_test(GNUInstallDirs -DSYSTEM_NAME=${CMAKE_SYSTEM_NAME})
add_RunCMake_test(GoogleTest) # Note: does not actually depend on Google Test
add_RunCMake_test(Graphviz)