Skip to content

Commit

Permalink
Fix luajit lib name when building Debug. Remove set LUA_FOUND 1
Browse files Browse the repository at this point in the history
  • Loading branch information
q4a committed Sep 22, 2018
1 parent c99ec1a commit 9a56e94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ set(LUA_LIBRARIES luajit)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
elseif(${CMAKE_BUILD_TYPE} STREQUAL "DEBUG")
elseif(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
set(LUA_LIBRARIES luajit-debug)
endif()

Expand All @@ -39,7 +39,6 @@ add_definitions(-D_MT -D_CPPUNWIND -DPURE_DYNAMIC_CAST -DDECLARE_SPECIALIZATION

set(LUA_INCLUDE_DIR Externals/LuaJIT/src)

set(LUA_FOUND 1)
if (NOT WIN32)
if(EXISTS ${CMAKE_SOURCE_DIR}/Externals/cryptopp/dsa.h)
file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/Externals/cryptopp)
Expand Down

0 comments on commit 9a56e94

Please sign in to comment.