]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix replacement op
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Mar 2018 14:04:09 +0000 (14:04 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 8 Mar 2018 14:04:09 +0000 (14:04 +0000)
CMakeLists.txt

index c8be4e65b22d38e95ecc89bac10e91f4f2b78477..e96bb80cf28d144de8bc602f9a691d2e826567b4 100644 (file)
@@ -427,7 +427,7 @@ MACRO(ProcessPackage PKG_NAME)
                        IF(_incl AND _lib)
                                # We need to apply heuristic to find the real dir name
                                STRING(REGEX REPLACE "/[^/]+$" "" _incl_path "${PKG_INCLUDE}")
-                               STRING(REPLACE "${_incl_path}/" "" _stripped_incl "${_incl}")
+                               STRING(REGEX REPLACE "${_incl_path}/$" "" _stripped_incl "${_incl}")
                                GET_FILENAME_COMPONENT(_lib_path "${_lib}" PATH)
                                INCLUDE_DIRECTORIES("${_stripped_incl}")
                                LINK_DIRECTORIES("${_lib_path}")