Skip to content

Commit 9a56e94

Browse files
committed
Fix luajit lib name when building Debug. Remove set LUA_FOUND 1
1 parent c99ec1a commit 9a56e94

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ set(LUA_LIBRARIES luajit)
2929

3030
if(NOT CMAKE_BUILD_TYPE)
3131
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
32-
elseif(${CMAKE_BUILD_TYPE} STREQUAL "DEBUG")
32+
elseif(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
3333
set(LUA_LIBRARIES luajit-debug)
3434
endif()
3535

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

4040
set(LUA_INCLUDE_DIR Externals/LuaJIT/src)
4141

42-
set(LUA_FOUND 1)
4342
if (NOT WIN32)
4443
if(EXISTS ${CMAKE_SOURCE_DIR}/Externals/cryptopp/dsa.h)
4544
file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/Externals/cryptopp)

0 commit comments

Comments
 (0)