Lua: Fix version check
@@ -19,11 +19,11 @@ else()
set (CMAKE_SWIG_FLAGS "-O")
set_source_files_properties (kdb.i PROPERTIES CPLUSPLUS ON)
- if (CMAKE_VERSION LESS 3.8)
+ if (CMAKE_VERSION VERSION_LESS 3.8)
swig_add_module (swig-lua lua kdb.i)
- else (CMAKE_VERSION LESS 3.8)
+ else (CMAKE_VERSION VERSION_LESS 3.8)
swig_add_library (swig-lua LANGUAGE lua SOURCES kdb.i TYPE MODULE)
- endif (CMAKE_VERSION LESS 3.8)
+ endif (CMAKE_VERSION VERSION_LESS 3.8)
swig_link_libraries (swig-lua elektra-core elektra-kdb ${LUA_LIBRARIES})
set_target_properties (swig-lua PROPERTIES OUTPUT_NAME kdb)
set_target_properties (${SWIG_MODULE_swig-lua_REAL_NAME} PROPERTIES PREFIX "")
