Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钟尚武
dlib
Commits
bc377891
Commit
bc377891
authored
Oct 29, 2017
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Made top level cmake file not build a shared library if part of a subproject.
parent
88d8b7c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
CMakeLists.txt
CMakeLists.txt
+11
-6
No files found.
CMakeLists.txt
View file @
bc377891
cmake_minimum_required
(
VERSION 2.8.12
)
cmake_minimum_required
(
VERSION 2.8.12
)
# Set this so that the dlib subfolder will build both a static and shared
# library, since the only reason to build this CMakeLists.txt is if you want
# to install dlib. It should be noted however that installing dlib is not
get_directory_property
(
has_parent PARENT_DIRECTORY
)
# necessary. A simpler approach is to use it the way shown in
if
(
NOT has_parent
)
# examples/CMakeLists.txt
# Set this so that the dlib subfolder will build both a static and shared
set
(
DLIB_IN_PROJECT_BUILD false
)
# library, since the only reason to build this CMakeLists.txt by itself is
# if you want to install dlib. It should be noted however that installing
# dlib is not necessary. A simpler approach is to use it the way shown in
# examples/CMakeLists.txt
set
(
DLIB_IN_PROJECT_BUILD false
)
endif
()
add_subdirectory
(
dlib
)
add_subdirectory
(
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