Skip to content

Commit

Permalink
Make debug handling match libopenshot-audio (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferdnyc committed Apr 16, 2020
1 parent 166f693 commit ad3b1b4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Expand Up @@ -129,6 +129,16 @@ if (ENABLE_COVERAGE)
endif()
add_feature_info("Coverage" ENABLE_COVERAGE "analyze test coverage and generate report")

# Juce requires either DEBUG or NDEBUG to be defined on MacOS.
# -DNDEBUG is set by cmake for all release configs, so add
# -DDEBUG for debug builds. We'll do this for all OSes, even
# though only MacOS requires it.
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG")
# Make sure we've picked some build type, default to debug
if(NOT DEFINED CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "")
set(CMAKE_BUILD_TYPE "Debug")
endif()

############## PROCESS src/ DIRECTORIES ##############
add_subdirectory(src)

Expand Down

0 comments on commit ad3b1b4

Please sign in to comment.