Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
otb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Youssefi
otb
Commits
3aca2c74
Commit
3aca2c74
authored
14 years ago
by
Emmanuel Christophe
Browse files
Options
Downloads
Patches
Plain Diff
BUG: better solution for the mercurial problem in the package
parent
1734b079
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMake/FindMercurial.cmake
+7
-7
7 additions, 7 deletions
CMake/FindMercurial.cmake
with
7 additions
and
7 deletions
CMake/FindMercurial.cmake
+
7
−
7
View file @
3aca2c74
...
@@ -28,19 +28,19 @@ IF(Mercurial_HG_EXECUTABLE)
...
@@ -28,19 +28,19 @@ IF(Mercurial_HG_EXECUTABLE)
EXECUTE_PROCESS
(
COMMAND
${
Mercurial_HG_EXECUTABLE
}
version
EXECUTE_PROCESS
(
COMMAND
${
Mercurial_HG_EXECUTABLE
}
version
WORKING_DIRECTORY
${
dir
}
WORKING_DIRECTORY
${
dir
}
OUTPUT_VARIABLE Mercurial_VERSION_HG
OUTPUT_VARIABLE Mercurial_VERSION_HG
OUTPUT_STRIP_TRAILING_WHITESPACE
)
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
)
EXECUTE_PROCESS
(
COMMAND
${
Mercurial_HG_EXECUTABLE
}
identify
${
dir
}
EXECUTE_PROCESS
(
COMMAND
${
Mercurial_HG_EXECUTABLE
}
identify
${
dir
}
OUTPUT_VARIABLE
${
prefix
}
_WC_IDENTIFY
OUTPUT_VARIABLE
${
prefix
}
_WC_IDENTIFY
ERROR_VARIABLE Mercurial_hg_identify_error
#
ERROR_VARIABLE Mercurial_hg_identify_error
RESULT_VARIABLE Mercurial_hg_identify_result
#
RESULT_VARIABLE Mercurial_hg_identify_result
OUTPUT_STRIP_TRAILING_WHITESPACE
)
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
)
EXECUTE_PROCESS
(
COMMAND
${
Mercurial_HG_EXECUTABLE
}
status -m
${
dir
}
EXECUTE_PROCESS
(
COMMAND
${
Mercurial_HG_EXECUTABLE
}
status -m
${
dir
}
OUTPUT_VARIABLE
${
prefix
}
_WC_STATUS
OUTPUT_VARIABLE
${
prefix
}
_WC_STATUS
ERROR_VARIABLE Mercurial_hg_status_error
#
ERROR_VARIABLE Mercurial_hg_status_error
RESULT_VARIABLE Mercurial_hg_status_result
#
RESULT_VARIABLE Mercurial_hg_status_result
OUTPUT_STRIP_TRAILING_WHITESPACE
)
OUTPUT_STRIP_TRAILING_WHITESPACE
ERROR_QUIET
)
IF
(
NOT
${
Mercurial_hg_identify_result
}
EQUAL 0
)
IF
(
NOT
${
Mercurial_hg_identify_result
}
EQUAL 0
)
MESSAGE
(
SEND_ERROR
"Command
\"
${
Mercurial_HG_EXECUTABLE
}
identify
${
dir
}
\"
failed with output:
\n
${
Mercurial_hg_identify_error
}
"
)
MESSAGE
(
SEND_ERROR
"Command
\"
${
Mercurial_HG_EXECUTABLE
}
identify
${
dir
}
\"
failed with output:
\n
${
Mercurial_hg_identify_error
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment