From 51b008c369e78674ecf9bfd3543ecae0f28d7d76 Mon Sep 17 00:00:00 2001 From: Olivier Parcollet Date: Sun, 27 Jul 2014 15:24:16 +0200 Subject: [PATCH] cmake: make TRIQS_PATH absolute - when TRIQS_PATH is given e.g. with ~, make it absolute to avoid config. error. --- cmake/FindTRIQS.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/FindTRIQS.cmake b/cmake/FindTRIQS.cmake index 3f5f2450..fe53d407 100644 --- a/cmake/FindTRIQS.cmake +++ b/cmake/FindTRIQS.cmake @@ -10,6 +10,9 @@ # find_package(PackageHandleStandardArgs) +# Transform in particular the ~/.... into absolute name +get_filename_component(TRIQS_PATH ${TRIQS_PATH} ABSOLUTE) + SET(TRIAL_PATHS $ENV{TRIQS_PATH}/include/triqs ${TRIQS_PATH}/include/triqs