aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry <sv.l1@mail.ru>2019-08-23 17:18:05 +0300
committerWenzel Jakob <wenzel.jakob@epfl.ch>2019-08-23 16:18:05 +0200
commit8f5a8ab4ac693efc9610aba1e3bb1f5e0d711533 (patch)
tree5154e9167273144b99d341d5f037aa3f3eebf3c4
parent12e8774bc9aa4603136f2979088619b495850ca2 (diff)
downloadplatform_external_python_pybind11-8f5a8ab4ac693efc9610aba1e3bb1f5e0d711533.tar.gz
platform_external_python_pybind11-8f5a8ab4ac693efc9610aba1e3bb1f5e0d711533.tar.bz2
platform_external_python_pybind11-8f5a8ab4ac693efc9610aba1e3bb1f5e0d711533.zip
Don't strip debug symbols in RelWithDebInfo mode (#1892)
-rw-r--r--tools/pybind11Tools.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pybind11Tools.cmake b/tools/pybind11Tools.cmake
index e3ec572..c7156c0 100644
--- a/tools/pybind11Tools.cmake
+++ b/tools/pybind11Tools.cmake
@@ -197,7 +197,7 @@ function(pybind11_add_module target_name)
_pybind11_add_lto_flags(${target_name} ${ARG_THIN_LTO})
- if (NOT MSVC AND NOT ${CMAKE_BUILD_TYPE} MATCHES Debug)
+ if (NOT MSVC AND NOT ${CMAKE_BUILD_TYPE} MATCHES Debug|RelWithDebInfo)
# Strip unnecessary sections of the binary on Linux/Mac OS
if(CMAKE_STRIP)
if(APPLE)