summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GetPrerequisites/ExecutableScripts.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/GetPrerequisites/ExecutableScripts.cmake')
-rw-r--r--Tests/RunCMake/GetPrerequisites/ExecutableScripts.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/RunCMake/GetPrerequisites/ExecutableScripts.cmake b/Tests/RunCMake/GetPrerequisites/ExecutableScripts.cmake
index d1bc9b1..9cc05d0 100644
--- a/Tests/RunCMake/GetPrerequisites/ExecutableScripts.cmake
+++ b/Tests/RunCMake/GetPrerequisites/ExecutableScripts.cmake
@@ -10,7 +10,9 @@ endfunction()
# Should not throw any errors
# Regular executable
-get_prerequisites(${CMAKE_COMMAND} cmake_prereqs 1 1 "" "")
+if(SAMPLE_EXE)
+ get_prerequisites("${SAMPLE_EXE}" cmake_prereqs 1 1 "" "")
+endif()
# Shell script
check_script(${CMAKE_CURRENT_LIST_DIR}/script.sh)
# Batch script