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
72645edf
Commit
72645edf
authored
Apr 05, 2017
by
Davis King
Browse files
Fixed visual studio errors about openmp compiler flags not being right.
parent
85a817da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+6
-2
No files found.
dlib/CMakeLists.txt
View file @
72645edf
...
...
@@ -662,7 +662,9 @@ if (NOT TARGET dlib)
if
(
OPENMP_FOUND
)
# Enable OpenMP
target_compile_options
(
dlib PUBLIC
${
OpenMP_CXX_FLAGS
}
)
target_link_libraries
(
dlib PUBLIC
${
OpenMP_CXX_FLAGS
}
)
if
(
NOT MSVC
)
target_link_libraries
(
dlib PUBLIC
${
OpenMP_CXX_FLAGS
}
)
endif
()
endif
()
if
(
UNIX AND NOT DLIB_IN_PROJECT_BUILD
)
if
(
DLIB_USE_CUDA
)
...
...
@@ -681,7 +683,9 @@ if (NOT TARGET dlib)
if
(
OPENMP_FOUND
)
# Enable OpenMP
target_compile_options
(
dlib_shared PUBLIC
${
OpenMP_CXX_FLAGS
}
)
target_link_libraries
(
dlib_shared PUBLIC
${
OpenMP_CXX_FLAGS
}
)
if
(
NOT MSVC
)
target_link_libraries
(
dlib_shared PUBLIC
${
OpenMP_CXX_FLAGS
}
)
endif
()
endif
()
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