Memo‎ > ‎

FW: How to debug a release build

posted Jul 7, 2017, 6:38 AM by Teng-Yok Lee

REF: https://msdn.microsoft.com/en-us/library/fsk896zz.aspx

With CMake, the same effect can be achieved by modifying the following CMake variables:

  • Append "/Z7" to CMAKE_CXX_FLAGS_RELEASE and CMAKE_C_FLAGS_RELEASE.
  • Append "/DEBUG /OPT:REF /OPT:ICF" to CMAKE_EXE_LINKER_FLAGS_RELEASE.
Comments