← All tasks
cppleethomason/tinyxml2 #334Not a task: already works

Define the `DEBUG` macro in CMakeLists.txt

envgap__leethomason__tinyxml2-334

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
e5e5541af6c22abb6122e82d636c1f92d33d98c5
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

leethomason/tinyxml2 #334 · read the original issue
In CMake, a standard way to build the "debug mode" of a project is to run the command `cmake -DCMAKE_BUILD_TYPE=Debug /path/to/source` (refer [the CMake FAQ](http://www.cmake.org/Wiki/CMake_FAQ)). With the current CMakeLists.txt, this only adds the `-g` compiler flag.

In my opinion, we should modify CMakeLists.txt to define the `DEBUG` macro when compiling in "debug mode", since it is used in multiple places in the library.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]