forked from OSchip/llvm-project
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
This commit is contained in:
parent
75a4f35b26
commit
3597097671
|
@ -3,7 +3,7 @@ set(LLVM_NO_RTTI 1)
|
||||||
file(GLOB SWIG_INPUTS Python/interface/*.i)
|
file(GLOB SWIG_INPUTS Python/interface/*.i)
|
||||||
|
|
||||||
if (CMAKE_SYSTEM_NAME MATCHES "Windows")
|
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)
|
file(COPY ${PYTHON_DLL} DESTINATION ${CMAKE_BINARY_DIR}/bin)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue