Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
6bdfe3cd
Commit
6bdfe3cd
authored
May 09, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make sure -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE is propagated to nvcc so that
the odr violation checks don't erroneously trigger.
parent
5fe116d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
CMakeLists.txt
dlib/CMakeLists.txt
+3
-0
No files found.
dlib/CMakeLists.txt
View file @
6bdfe3cd
...
...
@@ -601,6 +601,9 @@ if (NOT TARGET dlib)
# linux).
list
(
APPEND CUDA_NVCC_FLAGS
"-arch=sm_30;-D__STRICT_ANSI__;-D_MWAITXINTRIN_H_INCLUDED;-D_FORCE_INLINES;
${
FLAGS_FOR_NVCC
}
"
)
list
(
APPEND CUDA_NVCC_FLAGS
${
active_preprocessor_switches
}
)
if
(
NOT DLIB_IN_PROJECT_BUILD
)
LIST
(
APPEND CUDA_NVCC_FLAGS -DDLIB__CMAKE_GENERATED_A_CONFIG_H_FILE
)
endif
()
if
(
NOT MSVC
)
list
(
APPEND CUDA_NVCC_FLAGS
"-std=c++11"
)
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