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
27ae6eb1
Commit
27ae6eb1
authored
Oct 30, 2013
by
Roman Donchenko
Committed by
OpenCV Buildbot
Oct 30, 2013
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1720 from SpecLad:cmp0017
parents
2f4d68c7
104b14e0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
CMakeLists.txt
CMakeLists.txt
+4
-0
OpenCVDetectCUDA.cmake
cmake/OpenCVDetectCUDA.cmake
+10
-0
No files found.
CMakeLists.txt
View file @
27ae6eb1
...
@@ -39,6 +39,10 @@ else()
...
@@ -39,6 +39,10 @@ else()
cmake_minimum_required
(
VERSION 2.6.3
)
cmake_minimum_required
(
VERSION 2.6.3
)
endif
()
endif
()
if
(
POLICY CMP0017
)
cmake_policy
(
SET CMP0017 NEW
)
endif
()
if
(
POLICY CMP0022
)
if
(
POLICY CMP0022
)
cmake_policy
(
SET CMP0022 OLD
)
cmake_policy
(
SET CMP0022 OLD
)
endif
()
endif
()
...
...
cmake/OpenCVDetectCUDA.cmake
View file @
27ae6eb1
...
@@ -15,12 +15,22 @@ endif()
...
@@ -15,12 +15,22 @@ endif()
set
(
CMAKE_MODULE_PATH
"
${
OpenCV_SOURCE_DIR
}
/cmake"
${
CMAKE_MODULE_PATH
}
)
set
(
CMAKE_MODULE_PATH
"
${
OpenCV_SOURCE_DIR
}
/cmake"
${
CMAKE_MODULE_PATH
}
)
foreach
(
var INCLUDE LIBRARY PROGRAM
)
set
(
__old_frpm_
${
var
}
"
${
CMAKE_FIND_ROOT_PATH_MODE_
${
var
}}
"
)
endforeach
()
set
(
CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER
)
set
(
CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER
)
set
(
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH
)
set
(
CMAKE_FIND_ROOT_PATH_MODE_LIBRARY BOTH
)
set
(
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER
)
set
(
CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER
)
find_package
(
CUDA 4.2 QUIET
)
find_package
(
CUDA 4.2 QUIET
)
foreach
(
var INCLUDE LIBRARY PROGRAM
)
set
(
CMAKE_FIND_ROOT_PATH_MODE_
${
var
}
"
${
__old_frpm_
${
var
}}
"
)
endforeach
()
list
(
REMOVE_AT CMAKE_MODULE_PATH 0
)
if
(
CUDA_FOUND
)
if
(
CUDA_FOUND
)
set
(
HAVE_CUDA 1
)
set
(
HAVE_CUDA 1
)
...
...
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