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
4b44c2a3
Commit
4b44c2a3
authored
May 02, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warnings on OS X.
parent
0ff10dcc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
CMakeLists.txt
dlib/CMakeLists.txt
+12
-0
No files found.
dlib/CMakeLists.txt
View file @
4b44c2a3
...
...
@@ -15,6 +15,12 @@ include(cmake_utils/set_compiler_specific_options.cmake)
# Adhere to GNU filesystem layout conventions
include
(
GNUInstallDirs
)
if
(
POLICY CMP0063
)
# This policy tells cmake to really honor CXX_VISIBILITY_PRESET rather than
# ignore it for backwards compatibility.
cmake_policy
(
SET CMP0063 NEW
)
endif
()
# default to a Release build (except if CMAKE_BUILD_TYPE is set)
include
(
cmake_utils/release_build_by_default
)
include
(
cmake_utils/use_cpp_11.cmake
)
...
...
@@ -857,4 +863,10 @@ if (MSVC)
set_target_properties
(
dlib PROPERTIES RELWITHDEBINFO_POSTFIX
"
${
VERSION
}
_relwithdebinfo_
${
numbits
}
bit_msvc
${
MSVC_VERSION
}
"
)
endif
()
# Check if we are being built as part of a pybind11 module.
if
(
COMMAND pybind11_add_module
)
# Don't export unnecessary symbols.
set_target_properties
(
dlib PROPERTIES CXX_VISIBILITY_PRESET
"hidden"
)
endif
()
add_library
(
dlib::dlib ALIAS 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