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
e82e2ceb
Unverified
Commit
e82e2ceb
authored
Nov 15, 2019
by
Davis E. King
Committed by
GitHub
Nov 15, 2019
Browse files
Fix build error in some versions of visual studio
parent
d175c350
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
dlib/CMakeLists.txt
dlib/CMakeLists.txt
+10
-2
No files found.
dlib/CMakeLists.txt
View file @
e82e2ceb
...
@@ -970,11 +970,19 @@ if (WIN32 AND mkl_iomp_dll)
...
@@ -970,11 +970,19 @@ if (WIN32 AND mkl_iomp_dll)
# the need to add the Intel MKL to the PATH.
# the need to add the Intel MKL to the PATH.
if
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
)
if
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
)
add_custom_command
(
TARGET dlib POST_BUILD
add_custom_command
(
TARGET dlib POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E copy
"
${
mkl_iomp_dll
}
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
# In some newer versions of windows/visual studio the output Config folder doesn't
# exist at first, so you can't copy to it unless you make it yourself. So make
# sure the target folder exists first.
COMMAND
${
CMAKE_COMMAND
}
-E make_directory
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
/"
COMMAND
${
CMAKE_COMMAND
}
-E copy
"
${
mkl_iomp_dll
}
"
"
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
/"
)
)
else
()
else
()
add_custom_command
(
TARGET dlib POST_BUILD
add_custom_command
(
TARGET dlib POST_BUILD
COMMAND
${
CMAKE_COMMAND
}
-E copy
"
${
mkl_iomp_dll
}
"
${
CMAKE_BINARY_DIR
}
/$<CONFIG>
# In some newer versions of windows/visual studio the output Config folder doesn't
# exist at first, so you can't copy to it unless you make it yourself. So make
# sure the target folder exists first.
COMMAND
${
CMAKE_COMMAND
}
-E make_directory
"
${
CMAKE_BINARY_DIR
}
/$<CONFIG>/"
COMMAND
${
CMAKE_COMMAND
}
-E copy
"
${
mkl_iomp_dll
}
"
"
${
CMAKE_BINARY_DIR
}
/$<CONFIG>/"
)
)
endif
()
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