--- task-1.9.4/CMakeLists.txt.orig +++ task-1.9.4/CMakeLists.txt @@ -30,14 +30,16 @@ set (PACKAGE_VERSION "${VERSION}") set (PACKAGE_STRING "${PACKAGE} ${VERSION}") -message ("-- Looking for Lua51") -find_package (Lua51) -if (LUA51_FOUND) - message ("-- Found Lua51: ${LUA_LIBRARIES}") - set (HAVE_LIBLUA true) - set (TASK_INCLUDE_DIRS ${TASK_INCLUDE_DIRS} ${LUA_INCLUDE_DIR}) - set (TASK_LIBRARIES ${TASK_LIBRARIES} ${LUA_LIBRARIES}) -endif (LUA51_FOUND) +if( ENABLE_LUA ) + message ("-- Looking for Lua51") + find_package (Lua51) + if (LUA51_FOUND) + message ("-- Found Lua51: ${LUA_LIBRARIES}") + set (HAVE_LIBLUA true) + set (TASK_INCLUDE_DIRS ${TASK_INCLUDE_DIRS} ${LUA_INCLUDE_DIR}) + set (TASK_LIBRARIES ${TASK_LIBRARIES} ${LUA_LIBRARIES}) + endif (LUA51_FOUND) +endif (ENABLE_LUA ) message ("-- Looking for pthread") find_path (PTHREAD_INCLUDE_DIR pthread.h)