Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
904305e3
Commit
904305e3
authored
Aug 19, 2005
by
Brad King
💬
Browse files
ENH: Added cmake -E create_symlink command that behaves like ln -s.
parent
7a324016
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmake.cxx
View file @
904305e3
...
...
@@ -714,6 +714,9 @@ void CMakeCommandUsage(const char* program)
<<
" write_regv key value - write registry value
\n
"
<<
" delete_regv key - delete registry value
\n
"
<<
" comspec - on windows 9x use this for RunCommand
\n
"
;
#else
errorStream
<<
" create_symlink old new - create a symbolic link new -> old
\n
"
;
#endif
cmSystemTools
::
Error
(
errorStream
.
str
().
c_str
());
...
...
@@ -852,6 +855,14 @@ int cmake::CMakeCommand(std::vector<std::string>& args)
return
1
;
}
// Command to create a symbolic link. Fails on platforms not
// supporting them.
else
if
(
args
[
1
]
==
"create_symlink"
&&
args
.
size
()
==
4
)
{
return
cmSystemTools
::
CreateSymlink
(
args
[
2
].
c_str
(),
args
[
3
].
c_str
())
?
0
:
1
;
}
// Internal CMake shared library support.
else
if
(
args
[
1
]
==
"cmake_symlink_library"
&&
args
.
size
()
==
5
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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