Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pybind11
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open
pybind11
Commits
4bf60c60
Unverified
Commit
4bf60c60
authored
Aug 08, 2023
by
Pieter P
Committed by
GitHub
Aug 07, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable strip when build type is unset (#4454) (#4780)
parent
690a115d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
tools/pybind11NewTools.cmake
+2
-0
tools/pybind11Tools.cmake
+2
-0
No files found.
tools/pybind11NewTools.cmake
View file @
4bf60c60
...
...
@@ -233,12 +233,14 @@ function(pybind11_add_module target_name)
endif
()
endif
()
if
(
DEFINED CMAKE_BUILD_TYPE
)
# see https://github.com/pybind/pybind11/issues/4454
# Use case-insensitive comparison to match the result of $<CONFIG:cfgs>
string
(
TOUPPER
"
${
CMAKE_BUILD_TYPE
}
"
uppercase_CMAKE_BUILD_TYPE
)
if
(
NOT MSVC AND NOT
"
${
uppercase_CMAKE_BUILD_TYPE
}
"
MATCHES DEBUG|RELWITHDEBINFO
)
# Strip unnecessary sections of the binary on Linux/macOS
pybind11_strip
(
${
target_name
}
)
endif
()
endif
()
if
(
MSVC
)
target_link_libraries
(
${
target_name
}
PRIVATE pybind11::windows_extras
)
...
...
tools/pybind11Tools.cmake
View file @
4bf60c60
...
...
@@ -212,11 +212,13 @@ function(pybind11_add_module target_name)
endif
()
endif
()
if
(
DEFINED CMAKE_BUILD_TYPE
)
# see https://github.com/pybind/pybind11/issues/4454
# Use case-insensitive comparison to match the result of $<CONFIG:cfgs>
string
(
TOUPPER
"
${
CMAKE_BUILD_TYPE
}
"
uppercase_CMAKE_BUILD_TYPE
)
if
(
NOT MSVC AND NOT
"
${
uppercase_CMAKE_BUILD_TYPE
}
"
MATCHES DEBUG|RELWITHDEBINFO
)
pybind11_strip
(
${
target_name
}
)
endif
()
endif
()
if
(
MSVC
)
target_link_libraries
(
${
target_name
}
PRIVATE pybind11::windows_extras
)
...
...
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