From 84ff312c7a9ee30140f022c3707bb73cbff75738 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 8 Mar 2018 14:04:09 +0000 Subject: [PATCH] [Minor] Fix replacement op --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c8be4e65b..e96bb80cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}") -- 2.39.5