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
gaoqiong
pybind11
Commits
867ae377
Commit
867ae377
authored
Oct 15, 2015
by
Wenzel Jakob
Browse files
minor CMakeLists.txt tweak: optimize for small binaries even in release builds
parent
929fd7e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
CMakeLists.txt
CMakeLists.txt
+5
-0
No files found.
CMakeLists.txt
View file @
867ae377
...
...
@@ -123,6 +123,11 @@ elseif (UNIX)
# .SO file extension on Linux/Mac OS
set_target_properties
(
example PROPERTIES SUFFIX
".so"
)
# Optimize for a small binary size
if
(
NOT
${
U_CMAKE_BUILD_TYPE
}
MATCHES DEBUG
)
set_target_properties
(
example PROPERTIES COMPILE_FLAGS
"-Os"
)
endif
()
# Strip unnecessary sections of the binary on Linux/Mac OS
if
(
APPLE
)
set_target_properties
(
example PROPERTIES MACOSX_RPATH
"."
)
...
...
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