Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
f9af9f8b
Commit
f9af9f8b
authored
Dec 08, 2017
by
Kino
Committed by
Davis E. King
Dec 07, 2017
Browse files
don't look for OpenMP with Apple Clang (#1002)
look at issue:
https://github.com/davisking/dlib/issues/674
parent
27b2d034
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+5
-2
No files found.
dlib/CMakeLists.txt
View file @
f9af9f8b
...
...
@@ -611,7 +611,7 @@ if (NOT TARGET dlib)
# Intel MKL, hasn't already decided what to use. This is because
# it makes the MKL bug out if you link to another openmp lib other
# than Intel's when you use the MKL.
if
(
NOT openmp_libarires AND NOT MSVC
)
if
(
NOT openmp_libarires AND NOT MSVC
AND NOT XCODE
)
find_package
(
OpenMP
)
if
(
OPENMP_FOUND
)
set
(
openmp_libarires
${
OpenMP_CXX_FLAGS
}
)
...
...
@@ -637,8 +637,11 @@ if (NOT TARGET dlib)
${
cudnn
}
${
CUDA_curand_LIBRARY
}
${
cusolver
}
${
openmp_libarires
}
)
if
(
OPENMP_FOUND
)
list
(
APPEND dlib_needed_libraries
${
openmp_libraries
}
)
endif
()
include_directories
(
${
cudnn_include
}
)
message
(
STATUS
"Enabling CUDA support for dlib. DLIB WILL USE CUDA"
)
else
()
...
...
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