diff options
author | Michael Andres <ma@suse.de> | 2010-12-22 10:00:07 +0100 |
---|---|---|
committer | Michael Andres <ma@suse.de> | 2010-12-22 10:00:07 +0100 |
commit | 774e5b31e291f23ff305233d5d876d3133c352cb (patch) | |
tree | 34aaf55f65ce73b502195399f693d760bcf21da0 | |
parent | 0ac34d70163e0ede90578f2e8fe16c21173d58ed (diff) | |
download | libzypp-bindings-774e5b31e291f23ff305233d5d876d3133c352cb.tar.gz libzypp-bindings-774e5b31e291f23ff305233d5d876d3133c352cb.tar.bz2 libzypp-bindings-774e5b31e291f23ff305233d5d876d3133c352cb.zip |
Use FIND_PROGRAM to detect readlink path.
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c24a4a8..e823062 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,7 +47,8 @@ FIND_PACKAGE(SWIG REQUIRED) FIND_PACKAGE(Zypp REQUIRED) # determine zypp version -EXECUTE_PROCESS(COMMAND "/usr/bin/readlink" ${ZYPP_LIBRARY} OUTPUT_VARIABLE ZYPP_SOFILE) +FIND_PROGRAM(READ_LINK readlink) +EXECUTE_PROCESS(COMMAND "${READ_LINK}" ${ZYPP_LIBRARY} OUTPUT_VARIABLE ZYPP_SOFILE) # match number at end, strip trailing \n by using a sub-match STRING(REGEX MATCH "([0-9]+)\n$" ZYPP_VERSION "${ZYPP_SOFILE}") |