mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Cmake build: Use only real absolute path to the cmake sources.
This change resolves symlinks, so that lyx called from the buil-dir always finds 'his' system dir.
This commit is contained in:
parent
24ef5a8e43
commit
5bc44b2cf2
@ -10,8 +10,9 @@ set(LYX_PROJECT LyX)
|
||||
|
||||
enable_testing()
|
||||
|
||||
get_filename_component(lyx_dir_readme ${CMAKE_SOURCE_DIR}/README ABSOLUTE)
|
||||
get_filename_component(lyx_dir_readme ${CMAKE_SOURCE_DIR}/README REALPATH) # Resolve symlinks
|
||||
get_filename_component(TOP_SRC_DIR ${lyx_dir_readme} PATH)
|
||||
message(STATUS "TOP_SRC_DIR = ${TOP_SRC_DIR}")
|
||||
|
||||
set(LYX_CMAKE_DIR "development/cmake")
|
||||
set(TOP_CMAKE_PATH "${TOP_SRC_DIR}/${LYX_CMAKE_DIR}")
|
||||
|
Loading…
Reference in New Issue
Block a user