summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/file-RPATH/TextCheckEmpty.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/file-RPATH/TextCheckEmpty.cmake')
-rw-r--r--Tests/RunCMake/file-RPATH/TextCheckEmpty.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/file-RPATH/TextCheckEmpty.cmake b/Tests/RunCMake/file-RPATH/TextCheckEmpty.cmake
new file mode 100644
index 000000000..806c73dae
--- /dev/null
+++ b/Tests/RunCMake/file-RPATH/TextCheckEmpty.cmake
@@ -0,0 +1,6 @@
+set(f "${CMAKE_CURRENT_BINARY_DIR}/not_a_binary.txt")
+file(WRITE "${f}" "Not a binary.\n")
+file(RPATH_CHECK FILE "${f}" RPATH "")
+if(NOT EXISTS "${f}")
+ message(FATAL_ERROR "RPATH_CHECK removed\n ${f}\nfor empty RPATH")
+endif()