From aef846e9ccb646cc52bddd15e0f9c198166d7a6c Mon Sep 17 00:00:00 2001 From: Dibyendu Majumdar Date: Mon, 14 May 2018 12:30:04 +0100 Subject: [PATCH] issue #150 only set NO_LUA_DEBUG when LTESTS is OFF --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f0d28c..6b1d8dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ()