mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Problem: /Z7 debug info is used only for Debug build, but not for RelWitDebInfo build
Solution: apply the same commadn for RelWithDebInfo build
This commit is contained in:
parent
6824c167ad
commit
a9973ac43f
@ -577,7 +577,9 @@ if (MSVC)
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
|
||||
|
||||
# Compile the static lib with debug information included
|
||||
# note: we assume here that the default flags contain some /Z flag
|
||||
string (REGEX REPLACE "/Z." "/Z7" CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
|
||||
string (REGEX REPLACE "/Z." "/Z7" CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
|
||||
|
||||
# Optimization flags.
|
||||
# http://msdn.microsoft.com/en-us/magazine/cc301698.aspx
|
||||
|
Loading…
x
Reference in New Issue
Block a user