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
21d9412c
Commit
21d9412c
authored
Oct 03, 2016
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: fix for GCC 6.x
parent
fa874220
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
OpenCVPCHSupport.cmake
cmake/OpenCVPCHSupport.cmake
+1
-6
OpenCVUtils.cmake
cmake/OpenCVUtils.cmake
+7
-0
No files found.
cmake/OpenCVPCHSupport.cmake
View file @
21d9412c
...
...
@@ -14,12 +14,7 @@
IF
(
CMAKE_COMPILER_IS_GNUCXX
)
EXEC_PROGRAM
(
${
CMAKE_CXX_COMPILER
}
ARGS
${
CMAKE_CXX_COMPILER_ARG1
}
-dumpversion
OUTPUT_VARIABLE gcc_compiler_version
)
#MESSAGE("GCC Version: ${gcc_compiler_version}")
IF
(
gcc_compiler_version VERSION_GREATER
"4.2.-1"
AND gcc_compiler_version VERSION_LESS
"6.0.0"
)
IF
(
NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"4.2.0"
)
SET
(
PCHSupport_FOUND TRUE
)
ENDIF
()
...
...
cmake/OpenCVUtils.cmake
View file @
21d9412c
...
...
@@ -121,6 +121,9 @@ function(ocv_include_directories)
OR
"
${
__abs_dir
}
"
MATCHES
"^
${
OpenCV_BINARY_DIR
}
"
OR
(
OPENCV_EXTRA_MODULES_PATH AND
"
${
__abs_dir
}
"
MATCHES
"^
${
OPENCV_EXTRA_MODULES_PATH
}
"
))
list
(
APPEND __add_before
"
${
dir
}
"
)
elseif
(
CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"6.0"
AND
dir MATCHES
"/usr/include$"
)
# workaround for GCC 6.x bug
else
()
include_directories
(
AFTER SYSTEM
"
${
dir
}
"
)
endif
()
...
...
@@ -142,6 +145,10 @@ endfunction()
function
(
ocv_target_include_directories target
)
_ocv_fix_target
(
target
)
set
(
__params
""
)
if
(
CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS
"6.0"
AND
";
${
ARGN
}
;"
MATCHES
"/usr/include;"
)
return
()
# workaround for GCC 6.x bug
endif
()
foreach
(
dir
${
ARGN
}
)
get_filename_component
(
__abs_dir
"
${
dir
}
"
ABSOLUTE
)
if
(
"
${
__abs_dir
}
"
MATCHES
"^
${
OpenCV_SOURCE_DIR
}
"
...
...
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