mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Changed: Detect hg binary under Mac OS X if /opt/local/bin is not in PATH
This commit is contained in:
parent
651065e4ed
commit
4a4b9b5ab8
1 changed files with 3 additions and 2 deletions
|
@ -48,7 +48,8 @@
|
|||
# License text for the above reference.)
|
||||
|
||||
FIND_PROGRAM(Mercurial_HG_EXECUTABLE hg
|
||||
DOC "mercurial command line client")
|
||||
DOC "mercurial command line client"
|
||||
HINTS /opt/local/bin)
|
||||
MARK_AS_ADVANCED(Mercurial_HG_EXECUTABLE)
|
||||
|
||||
IF(Mercurial_HG_EXECUTABLE)
|
||||
|
@ -58,7 +59,7 @@ IF(Mercurial_HG_EXECUTABLE)
|
|||
|
||||
STRING(REGEX REPLACE ".*version ([\\.0-9]+).*"
|
||||
"\\1" Mercurial_VERSION_HG "${Mercurial_VERSION_HG}")
|
||||
|
||||
|
||||
MACRO(Mercurial_WC_INFO dir prefix)
|
||||
EXECUTE_PROCESS(COMMAND ${Mercurial_HG_EXECUTABLE} tip --template "{rev};{node};{tags};{author}"
|
||||
WORKING_DIRECTORY ${dir}
|
||||
|
|
Loading…
Reference in a new issue