Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Marc Chevrier
CMake
Commits
29876066
Commit
29876066
authored
Apr 22, 2021
by
Brad King
Browse files
ExternalData: Improve error message when we fail to create a file
Report the underlying system error.
parent
3a7ee535
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/ExternalData.cmake
View file @
29876066
...
...
@@ -949,7 +949,7 @@ function(_ExternalData_link_or_copy src dst)
endif
()
if
(
result
)
file
(
REMOVE
"
${
tmp
}
"
)
message
(
FATAL_ERROR
"Failed to create
\n
${
tmp
}
\n
from
\n
${
obj
}
"
)
message
(
FATAL_ERROR
"Failed to create
:
\n
\"
${
tmp
}
\
"\
n
from
:
\n
\"
${
obj
}
\"\n
with error:
\n
${
result
}
"
)
endif
()
# Atomically create/replace the real destination.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment