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
a77b361f
Commit
a77b361f
authored
Nov 14, 2021
by
Davis King
Browse files
Make test python builds nice
parent
569de814
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
tools/python/CMakeLists.txt
tools/python/CMakeLists.txt
+6
-1
No files found.
tools/python/CMakeLists.txt
View file @
a77b361f
...
@@ -82,4 +82,9 @@ endif()
...
@@ -82,4 +82,9 @@ endif()
pybind11_add_module
(
_dlib_pybind11
${
python_srcs
}
)
pybind11_add_module
(
_dlib_pybind11
${
python_srcs
}
)
target_link_libraries
(
_dlib_pybind11 PRIVATE dlib::dlib
)
target_link_libraries
(
_dlib_pybind11 PRIVATE dlib::dlib
)
configure_file
(
${
PROJECT_SOURCE_DIR
}
/dlib/__init__.py.in
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
/dlib/__init__.py
)
# When invoked from setup.py CMAKE_LIBRARY_OUTPUT_DIRECTORY will be set. But when you are just building via say
# `cd dlib/tools/python; mkdir build; cd build; cmake ..` it won't be set. It only matters for building the actual
# distribution. So skip this for people building directly with cmake (which they might do when testing stuff).
if
(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
)
configure_file
(
${
PROJECT_SOURCE_DIR
}
/dlib/__init__.py.in
${
CMAKE_LIBRARY_OUTPUT_DIRECTORY
}
/dlib/__init__.py
)
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