Skip to content

Instantly share code, notes, and snippets.

@tbttfox
Created March 19, 2019 22:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tbttfox/b1ca3daceb8ebb5f5b8dd159605a778b to your computer and use it in GitHub Desktop.
Save tbttfox/b1ca3daceb8ebb5f5b8dd159605a778b to your computer and use it in GitHub Desktop.
Batch file I use to build a cmake project requiring maya 2018
setlocal
SET BUILD=mayabuild18
SET MAYA_VERSION=2018
SET COMPILER=Visual Studio 15 2017 Win64
SET PFX=%~dp0
cd %PFX%
rmdir %BUILD% /s /q
mkdir %BUILD%
cd %BUILD%
cmake ^
-DMAYA_VERSION=%MAYA_VERSION% ^
-G "%COMPILER%" ..\
cmake --build . --config Release --target INSTALL
pause
@tbttfox
Copy link
Author

tbttfox commented Mar 19, 2019

Also, I often comment out line 17 and compile directly from visual studio when I'm in development.
Comments in .bat files start with "REM"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment