fix for cmake 2.6 compatibility
This commit is contained in:
parent
7c0ad7a356
commit
00c5481dd0
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue