Merge pull request #628 from cmitu/cmake_debug

cmake: define _DEBUG for Debug builds
This commit is contained in:
Tomas Jakobsson 2020-01-05 19:37:23 +01:00 committed by GitHub
commit 0dbd146e88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -119,6 +119,10 @@ else()
add_definitions(-DUSE_OPENGLES_10)
endif()
# Enable additional defines for the Debug build configuration
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -D_DEBUG")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG")
#-------------------------------------------------------------------------------
#add include directories
set(COMMON_INCLUDE_DIRS

View file

@ -47,6 +47,11 @@ cmake .
make
```
NOTE: to generate a `Debug` build on Unix/Linux, run the Makefile generation step as:
```bash
cmake -DCMAKE_BUILD_TYPE=Debug .
```
**On the Raspberry Pi:**
Complete Raspberry Pi build instructions at [emulationstation.org](http://emulationstation.org/gettingstarted.html#install_rpi_standalone).