Fix ettercap 0.8.1 lua cmake error on osx 10.10

sajjad@xxx:~/ettercap-0.8.1/build$ cmake ../ -DENABLE_LUA=ON
-- The C compiler identification is AppleClang 6.0.0.6000054
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- Looking for sys/poll.h
-- Looking for sys/poll.h - found
-- Looking for sys/select.h
-- Looking for sys/select.h - found
-- Looking for sys/utsname.h
-- Looking for sys/utsname.h - found
-- Looking for getopt.h
-- Looking for getopt.h - found
-- Looking for ctype.h
-- Looking for ctype.h - found
-- Looking for inttypes.h
-- Looking for inttypes.h - found
-- Looking for arpa/nameser.h
-- Looking for arpa/nameser.h - found
-- Looking for ltdl.h
-- Looking for ltdl.h - found
-- Looking for dlfcn.h
-- Looking for dlfcn.h - found
-- Looking for wsyncup in /usr/lib/libcurses.dylib
-- Looking for wsyncup in /usr/lib/libcurses.dylib - found
-- Looking for cbreak in /usr/lib/libncurses.dylib
-- Looking for cbreak in /usr/lib/libncurses.dylib - found
-- Found Curses: /usr/lib/libncurses.dylib  
-- No GTK_BUILD_TYPE defined, default is GTK2
-- Found GTK2_GTK: /usr/local/lib/libgtk-x11-2.0.dylib  
-- Found OpenSSL: /usr/lib/libssl.dylib;/usr/lib/libcrypto.dylib (found version "0.9.8za") 
-- Found ZLIB: /usr/lib/libz.dylib (found version "1.2.5") 
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Looking for iconv
-- Looking for iconv - not found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- CURL support requested. Will look for curl >= 7.26.0
-- Found CURL: /usr/lib/libcurl.dylib (Required is at least version "7.26.0") 
-- Looking for poll
-- Looking for poll - found
-- Looking for strtok_r
-- Looking for strtok_r - found
-- Looking for select
-- Looking for select - found
-- Looking for scandir
-- Looking for scandir - found
-- Looking for strlcat
-- Looking for strlcat - found
-- Looking for strlcpy
-- Looking for strlcpy - found
-- Looking for strsep
-- Looking for strsep - found
-- Looking for strcasestr
-- Looking for strcasestr - found
-- Looking for memmem
-- Looking for memmem - found
-- Looking for basename
-- Looking for basename - found
-- Looking for strndup
-- Looking for strndup - found
-- Found LIBNET: /usr/local/lib/libnet.dylib  
-- Found PCRE: /usr/local/lib/libpcre.dylib  
-- Performing Test HAVE_MUTEX_RECURSIVE_NP
-- Performing Test HAVE_MUTEX_RECURSIVE_NP - Failed
-- Found LUAJIT: /usr/local/lib/libluajit-5.1.dylib (Required is at least version "2.0.0") 
CMake Warning (dev) at src/CMakeLists.txt:186 (get_target_property):
  Policy CMP0045 is not set: Error on non-existent target in
  get_target_property.  Run "cmake --help-policy CMP0045" for policy details.
  Use the cmake_policy command to set the policy and suppress this warning.

  get_target_property() called with non-existent target "ettercap".
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at src/CMakeLists.txt:191 (SET_TARGET_PROPERTIES):
  set_target_properties Can not find target to add properties to: ettercap


-- Found BISON: /usr/bin/bison (found version "2.3") 
-- Found FLEX: /usr/bin/flex (found version "2.5.35") 
-- Configuring incomplete, errors occurred!
See also "/Users/sajjad/ettercap-0.8.1/build/CMakeFiles/CMakeOutput.log".
See also "/Users/sajjad/ettercap-0.8.1/build/CMakeFiles/CMakeError.log".