diff options
author | Brad King <brad.king@kitware.com> | 2009-10-21 17:10:24 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-21 17:10:24 (GMT) |
commit | 22cbfefb76b66d12e2e7346b08e08dec19305f70 (patch) | |
tree | d435c6215ff5404daa0e0474ddcc14d35b3aac40 /Source/cmake.h | |
parent | 3c326476ee63b91a2a240641da7e405d3e770bb3 (diff) | |
download | CMake-22cbfefb76b66d12e2e7346b08e08dec19305f70.zip CMake-22cbfefb76b66d12e2e7346b08e08dec19305f70.tar.gz CMake-22cbfefb76b66d12e2e7346b08e08dec19305f70.tar.bz2 |
Factor out "cmake -E cmake_symlink_*" code
We factor the implementation of
cmake -E cmake_symlink_library
cmake -E cmake_symlink_executable
out of cmake::ExecuteCMakeCommand into methods
cmake::SymlinkLibrary
cmake::SymlinkExecutable
plus a helper method cmake::SymlinkInternal.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index f983dc2..37e38b7 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -414,6 +414,10 @@ protected: void GenerateGraphViz(const char* fileName) const; + static int SymlinkLibrary(std::vector<std::string>& args); + static int SymlinkExecutable(std::vector<std::string>& args); + static bool SymlinkInternal(std::string const& file, + std::string const& link); static int ExecuteEchoColor(std::vector<std::string>& args); static int ExecuteLinkScript(std::vector<std::string>& args); static int VisualStudioLink(std::vector<std::string>& args, int type); |