Skip to content

Commit 3e53420

Browse files
committed
fix error "cannot find -lluajit-debug" when typinf "cmake .." twice
1 parent 3dd448d commit 3e53420

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if(NOT CMAKE_BUILD_TYPE)
2222
set(LUA_LIBRARIES luajit)
2323
elseif(${CMAKE_BUILD_TYPE} STREQUAL "RELWITHDEBINFO")
2424
set(LUA_LIBRARIES luajit)
25-
else()
25+
elseif(${CMAKE_BUILD_TYPE} STREQUAL "DEBUG")
2626
set(LUA_LIBRARIES luajit-debug)
2727
endif()
2828

0 commit comments

Comments
 (0)