1
0

Fixed bad cmake document interpretation

Docs say:

"If nothing is found, the result will be <VAR>-NOTFOUND"
This commit is contained in:
Tiger Wang 2014-03-23 20:37:23 +00:00
parent fd8e5bf551
commit 83d0c6d6a7

View File

@ -9,7 +9,7 @@ include_directories ("${PROJECT_SOURCE_DIR}")
find_program(XXD_EXECUTABLE xxd)
if(NOT XXD_EXECUTABLE STREQUAL "xxd-NOTFOUND")
if(NOT XXD_EXECUTABLE STREQUAL "XXD_EXECUTABLE-NOTFOUND")
add_custom_command(OUTPUT ${PROJECT_SOURCE_DIR}/src/bin/basic_lua.h
COMMAND ${XXD_EXECUTABLE} -i lua/basic.lua | sed 's/unsigned char/static const unsigned char/g' >basic_lua.h
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/src/bin/