fix wrong conditon in deps/luajit.cmake
bug report in
@@ -226,11 +226,11 @@ ELSEIF(NOT WIN32)
# code can't use it (at least without modifying the test code)
execute_process(COMMAND "${CMAKE_C_COMPILER}" -c -x c "${TMPUNWIND_DIR}/tmpunwind.c" -o "${TMPUNWIND_DIR}/tmpunwind.o"
RESULT_VARIABLE UNWIND_TEST_ERRORED)
- IF(NOT UNWIND_TEST_ERRORED)
+ IF(UNWIND_TEST_ERRORED EQUAL 0)
file(READ "${TMPUNWIND_DIR}/tmpunwind.o" TMPUNWIND_O)
string(FIND "${TMPUNWIND_O}" "eh_frame" EH_FRAME_FOUND)
string(FIND "${TMPUNWIND_O}" "__unwind_info" UNWIND_INFO_FOUND)
- IF(EH_FRAME_FOUND OR UNWIND_INFO_FOUND)
+ IF(EH_FRAME_FOUND GREATER -1 OR UNWIND_INFO_FOUND GREATER -1)
SET(TOOLCHAIN_GENERATES_UNWIND_TABLES 1)
ENDIF()
ENDIF()
