修复编译 rpm 时获取调试信息失败问题
This commit is contained in:
parent
a17b950b21
commit
b1cff54224
|
|
@ -193,6 +193,12 @@ if(UNIX)
|
||||||
"-Wall;-Wextra"
|
"-Wall;-Wextra"
|
||||||
"-Wno-unused-function;-Wno-unused-parameter;-Wno-unused-variable"
|
"-Wno-unused-function;-Wno-unused-parameter;-Wno-unused-variable"
|
||||||
"-Wno-error=extra;-Wno-error=missing-field-initializers;-Wno-error=type-limits")
|
"-Wno-error=extra;-Wno-error=missing-field-initializers;-Wno-error=type-limits")
|
||||||
|
|
||||||
|
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
|
||||||
|
set(COMPILE_OPTIONS_DEFAULT ${COMPILE_OPTIONS_DEFAULT} "-g3")
|
||||||
|
else()
|
||||||
|
set(COMPILE_OPTIONS_DEFAULT ${COMPILE_OPTIONS_DEFAULT} "-g0")
|
||||||
|
endif()
|
||||||
elseif(WIN32)
|
elseif(WIN32)
|
||||||
if (MSVC)
|
if (MSVC)
|
||||||
set(COMPILE_OPTIONS_DEFAULT
|
set(COMPILE_OPTIONS_DEFAULT
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@
|
||||||
%bcond_with cxx_api
|
%bcond_with cxx_api
|
||||||
|
|
||||||
Name: ZLMediaKit
|
Name: ZLMediaKit
|
||||||
Version: 5.0.0
|
Version: 8.0.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A lightweight, high performance and stable stream server and client framework based on C++11.
|
Summary: A lightweight, high performance and stable stream server and client framework based on C++11.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue