Skip to content

Commit

Permalink
check PYTHON_INSTALL_DIR before making directory. (#1120)
Browse files Browse the repository at this point in the history
  • Loading branch information
seanyen authored Aug 27, 2020
1 parent 044f53e commit f972729
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/templates/python_distutils_install.bat.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ if DEFINED DESTDIR (

cd "@INSTALL_CMD_WORKING_DIRECTORY@"

mkdir "@SETUPTOOLS_INSTALL_PREFIX@\@PYTHON_INSTALL_DIR@"
if NOT EXIST "@SETUPTOOLS_INSTALL_PREFIX@\@PYTHON_INSTALL_DIR@\" (
mkdir "@SETUPTOOLS_INSTALL_PREFIX@\@PYTHON_INSTALL_DIR@"
)

set "PYTHONPATH=@SETUPTOOLS_INSTALL_PREFIX@\@PYTHON_INSTALL_DIR@;@CMAKE_BINARY_DIR@\@PYTHON_INSTALL_DIR@"
set "CATKIN_BINARY_DIR=@CMAKE_BINARY_DIR@"
Expand Down

0 comments on commit f972729

Please sign in to comment.