Skip to content

Commit

Permalink
CMake: Debug build type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie authored and acolwell committed Jul 10, 2024
1 parent 3a41fd5 commit a292d0d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ set(CMAKE_CXX_STANDARD 14)
option(NATRON_SYSTEM_LIBS "use system versions of dependencies instead of bundled ones" OFF)
option(NATRON_BUILD_TESTS "build the Natron test suite" ON)

if(CMAKE_BUILD_TYPE MATCHES "^(debug|Debug|DEBUG)$")
add_definitions(-DDEBUG)
else()
add_definitions(-DQT_NO_DEBUG_OUTPUT)
endif()

if(NOT DEFINED CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "")
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build." FORCE)
message(STATUS "Setting build type to '${CMAKE_BUILD_TYPE}' as none was specified.")
Expand Down

0 comments on commit a292d0d

Please sign in to comment.