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
13a9129d
Commit
13a9129d
authored
Jun 15, 2011
by
Alexander Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
turned off WITH_VIDEOINPUT for mingw with dwarf2
parent
1a208fe1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
CMakeLists.txt
CMakeLists.txt
+10
-2
No files found.
CMakeLists.txt
View file @
13a9129d
...
...
@@ -194,7 +194,11 @@ if(CMAKE_COMPILER_IS_GNUCXX)
execute_process
(
COMMAND
${
CMAKE_CXX_COMPILER
}
--version
OUTPUT_VARIABLE CMAKE_OPENCV_GCC_VERSION_FULL
OUTPUT_STRIP_TRAILING_WHITESPACE
)
execute_process
(
COMMAND
${
CMAKE_CXX_COMPILER
}
-v
ERROR_VARIABLE CMAKE_OPENCV_GCC_INFO_FULL
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# Typical output in CMAKE_OPENCV_GCC_VERSION_FULL: "c+//0 (whatever) 4.2.3 (...)"
# Look for the version number
string
(
REGEX MATCH
"[0-9].[0-9].[0-9]"
CMAKE_GCC_REGEX_VERSION
"
${
CMAKE_OPENCV_GCC_VERSION_FULL
}
"
)
...
...
@@ -362,7 +366,11 @@ set(WITH_EIGEN ON CACHE BOOL "Include Eigen2/Eigen3 support")
set
(
WITH_CUDA ON CACHE BOOL
"Include NVidia Cuda Runtime support"
)
if
(
WIN32
)
set
(
WITH_VIDEOINPUT ON CACHE BOOL
"Enable VideoInput support"
)
if
(
MINGW AND
${
CMAKE_OPENCV_GCC_INFO_FULL
}
MATCHES
"--with-dwarf2"
)
set
(
WITH_VIDEOINPUT OFF CACHE BOOL
"Enable VideoInput support"
)
else
()
set
(
WITH_VIDEOINPUT ON CACHE BOOL
"Enable VideoInput support"
)
endif
()
endif
()
set
(
WITH_OPENNI OFF CACHE BOOL
"Include OpenNI support"
)
...
...
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