diff options
author | Michael Kruse <llvm@meinersbur.de> | 2017-07-18 10:10:02 +0000 |
---|---|---|
committer | Michael Kruse <llvm@meinersbur.de> | 2017-07-18 10:10:02 +0000 |
commit | 6123cdce39c66a76c814899f1f8800421d1bf195 (patch) | |
tree | b0d36e178ba70f70171577048a4ac308ebe384d1 /polly | |
parent | 50d7b290c327f120709b8ccf0a4b4eb433479816 (diff) | |
download | llvm-6123cdce39c66a76c814899f1f8800421d1bf195.zip llvm-6123cdce39c66a76c814899f1f8800421d1bf195.tar.gz llvm-6123cdce39c66a76c814899f1f8800421d1bf195.tar.bz2 |
[CMake] FindJsoncpp.cmake: Use descriptive variable name for libjsoncpp.so path.
find_library(lib) stores the result in the variable "lib", which is also
cached in CMakeCache.txt. This could theoretically conflict if jsoncpp
required two libraries, which each would get cached as "lib". Use a
more descriptive and disambiguative "jsoncpp_${libname}" for that.
llvm-svn: 308289
Diffstat (limited to 'polly')
-rw-r--r-- | polly/cmake/FindJsoncpp.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/polly/cmake/FindJsoncpp.cmake b/polly/cmake/FindJsoncpp.cmake index c4bf328..cee44d1 100644 --- a/polly/cmake/FindJsoncpp.cmake +++ b/polly/cmake/FindJsoncpp.cmake @@ -5,11 +5,11 @@ if (PkgConfig_FOUND) # Get the libraries full paths, to be consistent with find_library(). set(fulllibs) foreach (libname IN LISTS JSONCPP_LIBRARIES) - find_library(lib NAMES ${libname} + find_library(jsoncpp_lib${libname} NAMES ${libname} HINTS ${JSONCPP_LIBDIR} ${JSONCPP_LIBRARY_DIRS} ) - if (lib) - list(APPEND fulllibs ${lib}) + if (jsoncpp_lib${libname}) + list(APPEND fulllibs ${jsoncpp_lib${libname}}) else () list(APPEND fulllibs ${libname}) endif () |