From 26bad9031cbb865312abe6edd297dc91ebc48acd Mon Sep 17 00:00:00 2001 From: Paolo Capriotti Date: Fri, 20 Jul 2007 13:35:09 +0200 Subject: [PATCH] Simplified debug definition handling in the lua CMakeLists.txt. --- lua/CMakeLists.txt | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lua/CMakeLists.txt b/lua/CMakeLists.txt index da8952e..24ba8a5 100644 --- a/lua/CMakeLists.txt +++ b/lua/CMakeLists.txt @@ -85,15 +85,6 @@ ELSE("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") ENDIF("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") # -DLUA_USE_APICHECK is mandatory for debugging! -IF("${CMAKE_BUILD_TYPE}" STREQUAL "debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "debugfull") - ADD_DEFINITIONS(-DLUA_USE_APICHECK) -ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "debugfull") - -# Workaround for cmake bug??? -IF("${CMAKE_BUILD_TYPE}" STREQUAL "debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "debugfull") - ADD_DEFINITIONS(${CMAKE_C_FLAGS_DEBUG}) -ELSE("${CMAKE_BUILD_TYPE}" STREQUAL "debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "debugfull") - ADD_DEFINITIONS(${CMAKE_C_FLAGS_RELEASE}) -ENDIF("${CMAKE_BUILD_TYPE}" STREQUAL "debug" OR "${CMAKE_BUILD_TYPE}" STREQUAL "debugfull") +set(CMAKE_C_FLAGS_DEBUGFULL "${CMAKE_C_FLAGS_DEBUGFULL} -DLUA_USE_APICHECK") ADD_LIBRARY(lua STATIC ${LUA_SRC}) -- 2.11.4.GIT