Add CMake option to compile as optimized code with debugging symbols

Issue #59 new
Jarvellis Rogers created an issue

The CMakeLists.txt file has it’s own code for setting up a debug compilation. This, however, means there is no option currently to compile the software as optimized code with debugging symbols, which can be useful for certain types of profiling (like cache profiling).

To add this feature, we would need to create another section of code in CMakeLists.txt to contain the following line:

set(CMAKE_BUILD_TYPE RelWithDebInfo)

And then allow the user to call that with the following commandline option during CMake:

-DCMAKE_BUILD_TYPE=RelWithDebInfo

For now, I think this can be done by having the user edit line 342, but there may be other code needed for this to work properly.

Comments (0)

  1. Log in to comment