3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-25 05:43:40 +01:00

cmake: make TRIQS_PATH absolute

- when TRIQS_PATH is given e.g. with ~, make it absolute
  to avoid config. error.
This commit is contained in:
Olivier Parcollet 2014-07-27 15:24:16 +02:00
parent 06dbfb71bf
commit 51b008c369

View File

@ -10,6 +10,9 @@
# #
find_package(PackageHandleStandardArgs) find_package(PackageHandleStandardArgs)
# Transform in particular the ~/.... into absolute name
get_filename_component(TRIQS_PATH ${TRIQS_PATH} ABSOLUTE)
SET(TRIAL_PATHS SET(TRIAL_PATHS
$ENV{TRIQS_PATH}/include/triqs $ENV{TRIQS_PATH}/include/triqs
${TRIQS_PATH}/include/triqs ${TRIQS_PATH}/include/triqs