From 939c429b2474fd5aa672416f51b5a1c9588b5017 Mon Sep 17 00:00:00 2001 From: Andreas Naumann <andreas.naumann@tu-dresden.de> Date: Thu, 9 Jun 2011 04:02:09 +0000 Subject: [PATCH] warning about environment variable. cmake-developers are surprised too. --- AMDiS/AMDiSConfig.cmake.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AMDiS/AMDiSConfig.cmake.in b/AMDiS/AMDiSConfig.cmake.in index e8dc99d5..7c63ed3d 100644 --- a/AMDiS/AMDiSConfig.cmake.in +++ b/AMDiS/AMDiSConfig.cmake.in @@ -24,7 +24,11 @@ #and omit the AMDIS_USE_FILE. Then you also have to set the flags, include #and library directories. - +################## ONLY WORKAROUND AND WARNING ################### +if(NOT "$ENV{LIBRARY_PATH}" STREQUAL "") + message(WARNING "the environment variable LIBRARY_PATH is set. this can lead to problems during linking. \n You can unset it in your CMakeLists.txt with the command unset(ENV{LIBRARY_PATH}).\n") +endif() +################################################################## #try to detect the AMDiS include directory find_file(_AMDIS_H AMDiS.h PATHS ${AMDIS_INCLUDE_DIR} ${AMDIS_DIR}/../../include/amdis/ /usr/include/amdis/) if(_AMDIS_H) -- GitLab