From 5bc44b2cf290e2c3907851f57e2faff3d319fe67 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Fri, 11 Dec 2015 23:23:46 +0100 Subject: [PATCH] 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. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f1c86a759..a5b85132b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}")