issue #150 only set NO_LUA_DEBUG when LTESTS is OFF

pull/167/head
Dibyendu Majumdar 6 years ago
parent bdbbe5e021
commit aef846e9cc

@ -111,10 +111,9 @@ else()
endif ()
include_directories("${PROJECT_SOURCE_DIR}/include")
if ((CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "DEBUG") AND LTESTS AND NOT ASM_VM)
if (NOT LTESTS)
# Note that enabling ltests.h messes with global_State and thus interferes with ASM_VM
message(STATUS "Enabling Lua extended test harness 'ltests'")
else()
message(STATUS "Disabling Lua extended test harness 'ltests'")
add_definitions(-DNO_LUA_DEBUG)
endif ()

Loading…
Cancel
Save