Answers for "cmake keep debugging symbol"

0

cmake keep debugging symbol

#Add the following line to your CMakeLists.txt file to set the compilation mode to Debug (non-optimized code with debug symbols):

set(CMAKE_BUILD_TYPE Debug)
#Add the following line to your CMakeLists.txt file to set the compilation mode to RelWithDebInfo (optimized code with debug symbols):

set(CMAKE_BUILD_TYPE RelWithDebInfo)
Posted by: Guest on October-25-2021

Browse Popular Code Answers by Language