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
705e31a3
Commit
705e31a3
authored
Nov 26, 2020
by
Seth R Johnson
Browse files
CTest: only look for update executables when needed
parent
8b8f0197
Changes
1
Hide whitespace changes
Inline
Side-by-side
Modules/CTest.cmake
View file @
705e31a3
...
...
@@ -121,15 +121,6 @@ if(BUILD_TESTING)
string
(
APPEND SUBMIT_URL
"
${
DROP_SITE
}${
DROP_LOCATION
}
"
)
endif
()
find_program
(
CVSCOMMAND cvs
)
set
(
CVS_UPDATE_OPTIONS
"-d -A -P"
CACHE STRING
"Options passed to the cvs update command."
)
find_program
(
SVNCOMMAND svn
)
find_program
(
BZRCOMMAND bzr
)
find_program
(
HGCOMMAND hg
)
find_program
(
GITCOMMAND git
)
find_program
(
P4COMMAND p4
)
if
(
NOT UPDATE_TYPE
)
if
(
EXISTS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/CVS"
)
set
(
UPDATE_TYPE cvs
)
...
...
@@ -146,21 +137,29 @@ if(BUILD_TESTING)
string
(
TOLOWER
"
${
UPDATE_TYPE
}
"
_update_type
)
if
(
"
${
_update_type
}
"
STREQUAL
"cvs"
)
find_program
(
CVSCOMMAND cvs
)
set
(
CVS_UPDATE_OPTIONS
"-d -A -P"
CACHE STRING
"Options passed to the cvs update command."
)
set
(
UPDATE_COMMAND
"
${
CVSCOMMAND
}
"
)
set
(
UPDATE_OPTIONS
"
${
CVS_UPDATE_OPTIONS
}
"
)
elseif
(
"
${
_update_type
}
"
STREQUAL
"svn"
)
find_program
(
SVNCOMMAND svn
)
set
(
UPDATE_COMMAND
"
${
SVNCOMMAND
}
"
)
set
(
UPDATE_OPTIONS
"
${
SVN_UPDATE_OPTIONS
}
"
)
elseif
(
"
${
_update_type
}
"
STREQUAL
"bzr"
)
find_program
(
BZRCOMMAND bzr
)
set
(
UPDATE_COMMAND
"
${
BZRCOMMAND
}
"
)
set
(
UPDATE_OPTIONS
"
${
BZR_UPDATE_OPTIONS
}
"
)
elseif
(
"
${
_update_type
}
"
STREQUAL
"hg"
)
find_program
(
HGCOMMAND hg
)
set
(
UPDATE_COMMAND
"
${
HGCOMMAND
}
"
)
set
(
UPDATE_OPTIONS
"
${
HG_UPDATE_OPTIONS
}
"
)
elseif
(
"
${
_update_type
}
"
STREQUAL
"git"
)
find_program
(
GITCOMMAND git
)
set
(
UPDATE_COMMAND
"
${
GITCOMMAND
}
"
)
set
(
UPDATE_OPTIONS
"
${
GIT_UPDATE_OPTIONS
}
"
)
elseif
(
"
${
_update_type
}
"
STREQUAL
"p4"
)
find_program
(
P4COMMAND p4
)
set
(
UPDATE_COMMAND
"
${
P4COMMAND
}
"
)
set
(
UPDATE_OPTIONS
"
${
P4_UPDATE_OPTIONS
}
"
)
endif
()
...
...
Craig Scott
@craig.scott
mentioned in commit
7fb0a78a
·
Nov 28, 2020
mentioned in commit
7fb0a78a
mentioned in commit 7fb0a78ab10e4c2f51f8092796d9c9778e58954f
Toggle commit list
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