diff --git a/cmake/templates/python_distutils_install.bat.in b/cmake/templates/python_distutils_install.bat.in index fd9906a68..315db1b96 100644 --- a/cmake/templates/python_distutils_install.bat.in +++ b/cmake/templates/python_distutils_install.bat.in @@ -7,11 +7,13 @@ if DEFINED DESTDIR ( cd "@INSTALL_CMD_WORKING_DIRECTORY@" -cmd /V:on /C set PYTHONPATH="@CMAKE_INSTALL_PREFIX@/@PYTHON_INSTALL_DIR@;@CMAKE_BINARY_DIR@/@PYTHON_INSTALL_DIR@" ^ - && set CATKIN_BINARY_DIR="@CMAKE_BINARY_DIR@" ^ - && "@PYTHON_EXECUTABLE@" ^ - "@CMAKE_CURRENT_SOURCE_DIR@/setup.py" ^ - build --build-base "@CMAKE_CURRENT_BINARY_DIR@" ^ - install %DESTDIR_ARG% @SETUPTOOLS_ARG_EXTRA@ ^ - --prefix="@SETUPTOOLS_INSTALL_PREFIX@" ^ - --install-scripts="@SETUPTOOLS_INSTALL_PREFIX@\@CATKIN_GLOBAL_BIN_DESTINATION@" +mkdir "@CMAKE_INSTALL_PREFIX@\@PYTHON_INSTALL_DIR@" + +set "PYTHONPATH=@CMAKE_INSTALL_PREFIX@\@PYTHON_INSTALL_DIR@;@CMAKE_BINARY_DIR@\@PYTHON_INSTALL_DIR@" +set "CATKIN_BINARY_DIR=@CMAKE_BINARY_DIR@" +"@PYTHON_EXECUTABLE@" ^ + "@CMAKE_CURRENT_SOURCE_DIR@\setup.py" ^ + build --build-base "@CMAKE_CURRENT_BINARY_DIR@" ^ + install %DESTDIR_ARG% @SETUPTOOLS_ARG_EXTRA@ ^ + --prefix="@SETUPTOOLS_INSTALL_PREFIX@" ^ + --install-scripts="@SETUPTOOLS_INSTALL_PREFIX@\@CATKIN_GLOBAL_BIN_DESTINATION@"