Skip to content

Commit

Permalink
[CMake] FindJsoncpp.cmake: Use foreach variable.
Browse files Browse the repository at this point in the history
Use ${libname} instead of ${lib}. By a coincidence, this worked
because ${lib} also the variable used for finding the libjsoncpp.so
full path.

llvm-svn: 308288
  • Loading branch information
Meinersbur committed Jul 18, 2017
1 parent 8ab6869 commit 50d7b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polly/cmake/FindJsoncpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand Down

0 comments on commit 50d7b29

Please sign in to comment.