Fixed: ROOT_DIR is the parent of CMAKE_SOURCE_DIR

This commit is contained in:
kervala 2015-11-29 14:11:17 +01:00
parent fcc164fd59
commit 4ca1b40b6b

View file

@ -20,7 +20,10 @@ IF(SOURCE_DIR)
ENDIF()
ELSE()
SET(SOURCE_DIR ${CMAKE_SOURCE_DIR})
SET(ROOT_DIR ${CMAKE_SOURCE_DIR})
SET(ROOT_DIR ${CMAKE_SOURCE_DIR}/..)
# convert ROOT_DIR to absolute path
GET_FILENAME_COMPONENT(ROOT_DIR ${ROOT_DIR} ABSOLUTE)
ENDIF()
MACRO(NOW RESULT)