Skip to content

Commit

Permalink
Merge pull request #963 from rodlie/RB-2-5-cmakefix
Browse files Browse the repository at this point in the history
CMake: Debug build type fix
  • Loading branch information
rodlie committed Apr 20, 2024
2 parents b1a5210 + d1c2659 commit 9545d85
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 9545d85

Please sign in to comment.