Unverified Commit 31f69937 authored by Luca Boccassi's avatar Luca Boccassi Committed by GitHub

Merge pull request #3222 from sigiesec/add-z7-debug-info-with-relwithdebinfo

Problem: /Z7 debug info is used only for Debug build, but not for Rel…
parents 6824c167 a9973ac4
...@@ -577,7 +577,9 @@ if (MSVC) ...@@ -577,7 +577,9 @@ if (MSVC)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP") set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MP")
# Compile the static lib with debug information included # 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_DEBUG "${CMAKE_CXX_FLAGS_DEBUG}")
string (REGEX REPLACE "/Z." "/Z7" CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO}")
# Optimization flags. # Optimization flags.
# http://msdn.microsoft.com/en-us/magazine/cc301698.aspx # http://msdn.microsoft.com/en-us/magazine/cc301698.aspx
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment