You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@serf.apache.org by br...@apache.org on 2018/10/20 10:20:51 UTC

svn commit: r1844404 - /serf/trunk/build/FindAPR.cmake

Author: brane
Date: Sat Oct 20 10:20:51 2018
New Revision: 1844404

URL: http://svn.apache.org/viewvc?rev=1844404&view=rev
Log:
Fix a bug in the CMake build that caused APR and APR-Util libraries to
become "not found" after they had already been found in a non-default
library path, when Serf is built as part of a larger project.

* build/FindAPR.cmake (_apru_location): Unset the _dir, _lib and _extra
   local variables so that they don't inherit unhelpful strange values
   from any parent CMake environments.

Modified:
    serf/trunk/build/FindAPR.cmake

Modified: serf/trunk/build/FindAPR.cmake
URL: http://svn.apache.org/viewvc/serf/trunk/build/FindAPR.cmake?rev=1844404&r1=1844403&r2=1844404&view=diff
==============================================================================
--- serf/trunk/build/FindAPR.cmake (original)
+++ serf/trunk/build/FindAPR.cmake Sat Oct 20 10:20:51 2018
@@ -126,6 +126,9 @@ endfunction(_apru_extras)
 
 # From the list of link libraries, extract the imported location
 function(_apru_location _location_var _extralibs_var)
+  unset(_dir)
+  unset(_lib)
+  unset(_extra)
   foreach(_part ${ARGN})
     string(SUBSTRING "${_part}" 0 2 _flag)
     if(_flag STREQUAL "-L")