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
a4470b0e
Commit
a4470b0e
authored
Jan 06, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only turn off CUDA_PROPAGATE_HOST_FLAGS on OS X since that's the only place
that really needs it off.
parent
365dfd20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
CMakeLists.txt
dlib/CMakeLists.txt
+4
-4
No files found.
dlib/CMakeLists.txt
View file @
a4470b0e
...
...
@@ -519,13 +519,13 @@ if (NOT TARGET dlib)
# -std=c++11 option if you let it propagate it to nvcc in some
# cases. So instead we disable this and manually include
# things from CMAKE_CXX_FLAGS in the CUDA_NVCC_FLAGS list below.
if
(
NOT MSVC
)
if
(
APPLE
)
set
(
CUDA_PROPAGATE_HOST_FLAGS OFF
)
# Grab all the -D flags from CMAKE_CXX_FLAGS so we can pass them
# to nvcc.
string
(
REGEX MATCHALL
"-D[^ ]*"
FLAGS_FOR_NVCC
${
CMAKE_CXX_FLAGS
}
)
endif
()
# Grab all the -D flags from CMAKE_CXX_FLAGS so we can pass them
# to nvcc.
string
(
REGEX MATCHALL
"-D[^ ]*"
FLAGS_FOR_NVCC
${
CMAKE_CXX_FLAGS
}
)
set
(
CUDA_HOST_COMPILATION_CPP ON
)
# Note that we add __STRICT_ANSI__ to avoid freaking out nvcc with gcc specific
...
...
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