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
4b44c2a3
Commit
4b44c2a3
authored
May 02, 2018
by
Davis King
Browse files
Fix warnings on OS X.
parent
0ff10dcc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
dlib/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)
...
@@ -15,6 +15,12 @@ include(cmake_utils/set_compiler_specific_options.cmake)
# Adhere to GNU filesystem layout conventions
# Adhere to GNU filesystem layout conventions
include
(
GNUInstallDirs
)
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)
# default to a Release build (except if CMAKE_BUILD_TYPE is set)
include
(
cmake_utils/release_build_by_default
)
include
(
cmake_utils/release_build_by_default
)
include
(
cmake_utils/use_cpp_11.cmake
)
include
(
cmake_utils/use_cpp_11.cmake
)
...
@@ -857,4 +863,10 @@ if (MSVC)
...
@@ -857,4 +863,10 @@ if (MSVC)
set_target_properties
(
dlib PROPERTIES RELWITHDEBINFO_POSTFIX
"
${
VERSION
}
_relwithdebinfo_
${
numbits
}
bit_msvc
${
MSVC_VERSION
}
"
)
set_target_properties
(
dlib PROPERTIES RELWITHDEBINFO_POSTFIX
"
${
VERSION
}
_relwithdebinfo_
${
numbits
}
bit_msvc
${
MSVC_VERSION
}
"
)
endif
()
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
)
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