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
36d7712c
Commit
36d7712c
authored
Nov 27, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: CMakeVars.txt (for debugging purpose)
parent
ac118aee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
CMakeLists.txt
CMakeLists.txt
+3
-0
OpenCVUtils.cmake
cmake/OpenCVUtils.cmake
+31
-0
No files found.
CMakeLists.txt
View file @
36d7712c
...
@@ -1107,3 +1107,6 @@ endif()
...
@@ -1107,3 +1107,6 @@ endif()
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
include
(
cmake/OpenCVPackaging.cmake
)
include
(
cmake/OpenCVPackaging.cmake
)
# This should be the last command
ocv_cmake_dump_vars
(
""
TOFILE
"CMakeVars.txt"
)
cmake/OpenCVUtils.cmake
View file @
36d7712c
...
@@ -11,6 +11,37 @@ if(NOT COMMAND find_host_program)
...
@@ -11,6 +11,37 @@ if(NOT COMMAND find_host_program)
endmacro
()
endmacro
()
endif
()
endif
()
if
(
NOT COMMAND cmake_parse_arguments
)
include
(
CMakeParseArguments OPTIONAL
)
# CMake 2.8.3+
endif
()
# Debugging function
function
(
ocv_cmake_dump_vars
)
set
(
VARS
""
)
get_cmake_property
(
_variableNames VARIABLES
)
if
(
COMMAND cmake_parse_arguments222
)
cmake_parse_arguments
(
DUMP
""
"TOFILE"
""
${
ARGN
}
)
set
(
regex
"
${
DUMP_UNPARSED_ARGUMENTS
}
"
)
else
()
set
(
regex
"
${
ARGV0
}
"
)
if
(
ARGV1 STREQUAL
"TOFILE"
)
set
(
DUMP_TOFILE
"
${
ARGV2
}
"
)
endif
()
endif
()
string
(
TOLOWER
"
${
regex
}
"
regex_lower
)
foreach
(
_variableName
${
_variableNames
}
)
string
(
TOLOWER
"
${
_variableName
}
"
_variableName_lower
)
if
(
_variableName MATCHES
"
${
regex
}
"
OR _variableName_lower MATCHES
"
${
regex_lower
}
"
)
set
(
VARS
"
${
VARS
}${
_variableName
}
=
${${
_variableName
}}
\n
"
)
endif
()
endforeach
()
if
(
DUMP_TOFILE
)
file
(
WRITE
${
CMAKE_BINARY_DIR
}
/
${
DUMP_TOFILE
}
"
${
VARS
}
"
)
else
()
message
(
AUTHOR_WARNING
"
${
VARS
}
"
)
endif
()
endfunction
()
# assert macro
# assert macro
# Note: it doesn't support lists in arguments
# Note: it doesn't support lists in arguments
# Usage samples:
# Usage samples:
...
...
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