fix for cmake 2.6 compatibility

This commit is contained in:
Eduardo Bart 2011-12-29 20:50:36 -02:00
parent 7c0ad7a356
commit 00c5481dd0
2 changed files with 10 additions and 1 deletions

View File

@ -1,6 +1,10 @@
# CMAKE_CURRENT_LIST_DIR cmake 2.6 compatiblity
IF(NOT CMAKE_CURRENT_LIST_DIR)
GET_FILENAME_COMPONENT(CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
ENDIF(NOT CMAKE_CURRENT_LIST_DIR)
# add framework cmake modules # add framework cmake modules
SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake;${CMAKE_MODULE_PATH}") SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake;${CMAKE_MODULE_PATH}")
MESSAGE(STATUS ${CMAKE_MODULE_PATH})
# framework options # framework options
OPTION(NO_CONSOLE "Disables console window on Windows platform" OFF) OPTION(NO_CONSOLE "Disables console window on Windows platform" OFF)

View File

@ -1,3 +1,8 @@
# CMAKE_CURRENT_LIST_DIR cmake 2.6 compatiblity
IF(NOT CMAKE_CURRENT_LIST_DIR)
GET_FILENAME_COMPONENT(CMAKE_CURRENT_LIST_DIR ${CMAKE_CURRENT_LIST_FILE} PATH)
ENDIF(NOT CMAKE_CURRENT_LIST_DIR)
# otclient options # otclient options
OPTION(FORBIDDEN_FUNCTIONS "Enable forbidden lua functions" ON) OPTION(FORBIDDEN_FUNCTIONS "Enable forbidden lua functions" ON)