[polly] r308288 - [CMake] FindJsoncpp.cmake: Use foreach variable.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 18 03:09:58 PDT 2017
Author: meinersbur
Date: Tue Jul 18 03:09:58 2017
New Revision: 308288
URL: http://llvm.org/viewvc/llvm-project?rev=308288&view=rev
Log:
[CMake] FindJsoncpp.cmake: Use foreach variable.
Use ${libname} instead of ${lib}. By a coincidence, this worked
because ${lib} also the variable used for finding the libjsoncpp.so
full path.
Modified:
polly/trunk/cmake/FindJsoncpp.cmake
Modified: polly/trunk/cmake/FindJsoncpp.cmake
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/cmake/FindJsoncpp.cmake?rev=308288&r1=308287&r2=308288&view=diff
==============================================================================
--- polly/trunk/cmake/FindJsoncpp.cmake (original)
+++ polly/trunk/cmake/FindJsoncpp.cmake Tue Jul 18 03:09:58 2017
@@ -49,7 +49,7 @@ if (Jsoncpp_FOUND)
set_property(TARGET jsoncpp APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${incl})
endforeach ()
foreach (libname IN LISTS JSONCPP_LIBRARIES)
- set_property(TARGET jsoncpp APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${lib})
+ set_property(TARGET jsoncpp APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${libname})
endforeach ()
foreach (opt IN LISTS JSONCPP_DEFINITIONS)
set_property(TARGET jsoncpp APPEND PROPERTY INTERFACE_COMPILE_OPTIONS ${opt})
More information about the llvm-commits
mailing list