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
2271b9af
Commit
2271b9af
authored
8 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8443 from alalek:fix_coverage_trycompile
parents
f70cc29e
69df0eee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
CMakeLists.txt
CMakeLists.txt
+4
-0
OpenCVCompilerOptions.cmake
cmake/OpenCVCompilerOptions.cmake
+1
-0
OpenCVUtils.cmake
cmake/OpenCVUtils.cmake
+1
-0
No files found.
CMakeLists.txt
View file @
2271b9af
...
...
@@ -95,6 +95,10 @@ if(POLICY CMP0051)
cmake_policy
(
SET CMP0051 NEW
)
endif
()
if
(
POLICY CMP0056
)
cmake_policy
(
SET CMP0056 NEW
)
endif
()
include
(
cmake/OpenCVUtils.cmake
)
# must go before the project command
...
...
This diff is collapsed.
Click to expand it.
cmake/OpenCVCompilerOptions.cmake
View file @
2271b9af
...
...
@@ -192,6 +192,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
if
(
ENABLE_COVERAGE
)
set
(
OPENCV_EXTRA_C_FLAGS
"
${
OPENCV_EXTRA_C_FLAGS
}
--coverage"
)
set
(
OPENCV_EXTRA_CXX_FLAGS
"
${
OPENCV_EXTRA_CXX_FLAGS
}
--coverage"
)
set
(
CMAKE_EXE_LINKER_FLAGS
"
${
CMAKE_EXE_LINKER_FLAGS
}
--coverage"
)
endif
()
if
(
ENABLE_INSTRUMENTATION
)
...
...
This diff is collapsed.
Click to expand it.
cmake/OpenCVUtils.cmake
View file @
2271b9af
...
...
@@ -260,6 +260,7 @@ MACRO(ocv_check_compiler_flag LANG FLAG RESULT)
TRY_COMPILE
(
${
RESULT
}
"
${
CMAKE_BINARY_DIR
}
"
"
${
_fname
}
"
CMAKE_FLAGS
"-DCMAKE_EXE_LINKER_FLAGS=
${
CMAKE_EXE_LINKER_FLAGS
}
"
# CMP0056 do this on new CMake
COMPILE_DEFINITIONS
"
${
FLAG
}
"
OUTPUT_VARIABLE OUTPUT
)
...
...
This diff is collapsed.
Click to expand it.
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