summaryrefslogtreecommitdiffstats
path: root/Modules/FindCUDA/parse_cubin.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindCUDA/parse_cubin.cmake')
-rw-r--r--Modules/FindCUDA/parse_cubin.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindCUDA/parse_cubin.cmake b/Modules/FindCUDA/parse_cubin.cmake
index ddb50de..626c8a2 100644
--- a/Modules/FindCUDA/parse_cubin.cmake
+++ b/Modules/FindCUDA/parse_cubin.cmake
@@ -37,7 +37,7 @@
file(READ ${input_file} file_text)
-if (${file_text} MATCHES ".+")
+if (NOT "${file_text}" STREQUAL "")
string(REPLACE ";" "\\;" file_text ${file_text})
string(REPLACE "\ncode" ";code" file_text ${file_text})