aboutsummaryrefslogtreecommitdiff
path: root/cmake.deps/cmake/CopyFilesGlob.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake.deps/cmake/CopyFilesGlob.cmake')
-rw-r--r--cmake.deps/cmake/CopyFilesGlob.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake.deps/cmake/CopyFilesGlob.cmake b/cmake.deps/cmake/CopyFilesGlob.cmake
index 8950ead1e5..7d0f4fc289 100644
--- a/cmake.deps/cmake/CopyFilesGlob.cmake
+++ b/cmake.deps/cmake/CopyFilesGlob.cmake
@@ -14,7 +14,7 @@ execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${TO})
file(GLOB files ${FROM_GLOB})
foreach(file ${files})
execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${file} ${TO} RESULT_VARIABLE rv)
- if(NOT rv EQUAL 0)
+ if(rv)
message(FATAL_ERROR "Error copying ${file}")
endif()
endforeach()