Signed-off-by: Wolfram Sang <[email protected]>
---
CMakeLists.txt | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2986ee94..a1403c92 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,6 +58,10 @@ if(WIN32)
set(ENABLE_SIGNALS FALSE)
endif()
+if(ENABLE_STACKTRACE)
+ set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "'Debug' because of
stacktrace" FORCE)
+endif()
+
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
"Choose the type of build (None, Debug, Release, RelWithDebInfo,
MinSizeRel)."
--
2.20.1
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel