Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
1dac67f0
Commit
1dac67f0
authored
Feb 09, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: add version control revision info for extra modules
parent
de8b3ee2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
CMakeLists.txt
CMakeLists.txt
+30
-0
No files found.
CMakeLists.txt
View file @
1dac67f0
...
...
@@ -755,6 +755,36 @@ status("General configuration for OpenCV ${OPENCV_VERSION} =====================
if
(
OPENCV_VCSVERSION
)
status
(
" Version control:"
${
OPENCV_VCSVERSION
}
)
endif
()
if
(
OPENCV_EXTRA_MODULES_PATH AND NOT BUILD_INFO_SKIP_EXTRA_MODULES
)
set
(
__dump_extra_header OFF
)
foreach
(
p
${
OPENCV_EXTRA_MODULES_PATH
}
)
if
(
EXISTS
${
p
}
)
if
(
NOT __dump_extra_header
)
set
(
__dump_extra_header ON
)
status
(
""
)
status
(
" Extra modules:"
)
else
()
status
(
""
)
endif
()
set
(
EXTRA_MODULES_VCSVERSION
"unknown"
)
if
(
GIT_FOUND
)
execute_process
(
COMMAND
"
${
GIT_EXECUTABLE
}
"
describe --tags --always --dirty --match
"[0-9].[0-9].[0-9]*"
WORKING_DIRECTORY
"
${
p
}
"
OUTPUT_VARIABLE EXTRA_MODULES_VCSVERSION
RESULT_VARIABLE GIT_RESULT
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if
(
NOT GIT_RESULT EQUAL 0
)
set
(
EXTRA_MODULES_VCSVERSION
"unknown"
)
endif
()
endif
()
status
(
" Location (extra):"
${
p
}
)
status
(
" Version control (extra):"
${
EXTRA_MODULES_VCSVERSION
}
)
endif
()
endforeach
()
unset
(
__dump_extra_header
)
endif
()
# ========================== build platform ==========================
status
(
""
)
...
...
Write
Preview
Markdown
is supported
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