mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Fixed: ROOT_DIR is the parent of CMAKE_SOURCE_DIR
--HG-- branch : develop
This commit is contained in:
parent
27b45b40e8
commit
abb6b28661
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue