From 35970976712c929adf9a0ff82eacc6b779110bf5 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Thu, 22 Jan 2015 20:30:29 +0000 Subject: [PATCH] Change wildcard . to literal . in regex for copying python. On Windows we copy python27(_d).dll to the bin directory. We do this by looking at the PYTHON_LIBRARY specified by the user, which is something like C:\foo\python27_d.lib, and replacing ".lib" with ".dll". But ".lib" as a regex will also match "flib", etc. So make this a literal . instead of a wildcard . llvm-svn: 226858 --- lldb/scripts/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/scripts/CMakeLists.txt b/lldb/scripts/CMakeLists.txt index b002396..35710d1e 100644 --- a/lldb/scripts/CMakeLists.txt +++ b/lldb/scripts/CMakeLists.txt @@ -3,7 +3,7 @@ set(LLVM_NO_RTTI 1) file(GLOB SWIG_INPUTS Python/interface/*.i) if (CMAKE_SYSTEM_NAME MATCHES "Windows") - STRING(REGEX REPLACE ".lib" ".dll" PYTHON_DLL ${PYTHON_LIBRARY}) + STRING(REGEX REPLACE "[.]lib" ".dll" PYTHON_DLL ${PYTHON_LIBRARY}) file(COPY ${PYTHON_DLL} DESTINATION ${CMAKE_BINARY_DIR}/bin) endif () -- 2.7.4