Skip to content

Commit

Permalink
Activate DEBUG when CMAKE_BUILD_TYPE=Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Zegeri authored and q4a committed Sep 27, 2018
1 parent 1cbd1e7 commit 95f97c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ set(LUA_LIBRARIES luajit)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
elseif(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
add_definitions(-DDEBUG)
set(LUA_LIBRARIES luajit-debug)
endif()

Expand Down

0 comments on commit 95f97c5

Please sign in to comment.