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
ada91585
Commit
ada91585
authored
Feb 02, 2012
by
Alexey Spizhevoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the building process for (ubuntu 64bit debug cuda4.1) configuration
parent
d8fa3741
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
OpenCVModule.cmake
cmake/OpenCVModule.cmake
+6
-1
CMakeLists.txt
modules/gpu/CMakeLists.txt
+7
-0
No files found.
cmake/OpenCVModule.cmake
View file @
ada91585
...
...
@@ -237,8 +237,13 @@ macro(define_opencv_moduleEx _name _visibility)
#set (CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-keep")
#set (CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-Xcompiler;/EHsc-;")
# we remove -ggdb3 flag as it leads to preprocessor errors when compiling CUDA files (CUDA 4.1)
set
(
tmp
${
CMAKE_CXX_FLAGS_DEBUG
}
)
string
(
REPLACE
"-ggdb3"
""
CMAKE_CXX_FLAGS_DEBUG
${
CMAKE_CXX_FLAGS_DEBUG
}
)
CUDA_COMPILE
(
cuda_objs
${
lib_cuda
}
)
set
(
CMAKE_CXX_DEBUG_FLAGS
${
tmp
}
)
else
()
set
(
lib_cuda
""
)
set
(
cuda_objs
""
)
...
...
modules/gpu/CMakeLists.txt
View file @
ada91585
...
...
@@ -85,7 +85,14 @@ if (HAVE_CUDA)
set
(
CUDA_NVCC_FLAGS
${
CUDA_NVCC_FLAGS
}
"-Xcompiler;/wd4251"
)
endif
()
# we remove -ggdb3 flag as it leads to preprocessor errors when compiling CUDA files (CUDA 4.1)
set
(
tmp
${
CMAKE_CXX_FLAGS_DEBUG
}
)
string
(
REPLACE
"-ggdb3"
""
CMAKE_CXX_FLAGS_DEBUG
${
CMAKE_CXX_FLAGS_DEBUG
}
)
CUDA_COMPILE
(
cuda_objs
${
lib_cuda
}
${
ncv_cuda
}
)
set
(
CMAKE_CXX_DEBUG_FLAGS
${
tmp
}
)
#CUDA_BUILD_CLEAN_TARGET()
endif
()
...
...
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