Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bringing windows env.bat into alignment with current env.sh

  • Loading branch information...
commit 493ae549b8898352ac1eae601e8e4c880c816a34 1 parent 1e45c25
Daniel Stonier stonier authored
Showing with 17 additions and 5 deletions.
  1. +17 −5 cmake/templates/env.bat.buildspace.in
22 cmake/templates/env.bat.buildspace.in
View
@@ -1,5 +1,17 @@
-@set PYTHONPATH=@CMAKE_BINARY_DIR@/gen/py;%PYTHONPATH%
-@set PATH=@CMAKE_BINARY_DIR@/bin;@catkin_SOURCE_DIR@/bin;%PATH%
-@set CATKIN_BINARY_DIR=@CMAKE_BINARY_DIR@
-@set CATKIN_SOURCE_DIR=@CMAKE_SOURCE_DIR@
-@%*
+@if "%1"=="" (
+ goto EnterBuildEnvironment
+) else (
+ goto EnterExecutionEnvironment
+)
+
+:EnterBuildEnvironment
+@echo "Entering build environment at@CMAKE_BINARY_DIR@"
+cmd /K @CMAKE_BINARY_DIR@/setup.bat
+@echo "Exiting build environment at @CMAKE_BINARY_DIR@"
+@goto End
+
+:EnterExecutionEnvironment
+@%*
+@goto End
+
+:End
Please sign in to comment.
Something went wrong with that request. Please try again.