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
8928f477
"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "c39a511b5ff7d37e594aad22b8ac85d0fef20406"
Unverified
Commit
8928f477
authored
Feb 27, 2022
by
APTX
Committed by
GitHub
Feb 27, 2022
Browse files
Find Threads target if necessary (#2522) (#2526)
parent
0f1b2b37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
dlib/cmake_utils/dlibConfig.cmake.in
dlib/cmake_utils/dlibConfig.cmake.in
+10
-0
No files found.
dlib/cmake_utils/dlibConfig.cmake.in
View file @
8928f477
...
@@ -19,6 +19,16 @@ if(NOT TARGET dlib-shared AND NOT dlib_BINARY_DIR)
...
@@ -19,6 +19,16 @@ if(NOT TARGET dlib-shared AND NOT dlib_BINARY_DIR)
# Compute paths
# Compute paths
get_filename_component(dlib_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
get_filename_component(dlib_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
include("${dlib_CMAKE_DIR}/dlib.cmake")
include("${dlib_CMAKE_DIR}/dlib.cmake")
# Check if Threads::Threads target is required and find it if necessary
get_target_property(dlib_deps_threads_check dlib::dlib INTERFACE_LINK_LIBRARIES)
list(FIND dlib_deps_threads_check "Threads::Threads" dlib_deps_threads_idx)
if (${dlib_deps_threads_idx} GREATER -1)
if (NOT TARGET Threads)
find_package(Threads REQUIRED)
endif()
endif()
unset(dlib_deps_threads_idx)
unset(dlib_deps_threads_check)
endif()
endif()
set(dlib_LIBRARIES dlib::dlib)
set(dlib_LIBRARIES dlib::dlib)
...
...
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