set "PATH=%PATH%;C:\Program Files\CMake\bin"

if %1 == -E  (
cmake.exe  %* 
) else (
cmake.exe -G "NMake Makefiles" -DCMAKE_LINK_FLAGS:implib=libluajit.lib -DLUALIB=libluajit %*
)

setlocal
set "PATH=%PATH%;C:\Program Files\CMake\bin"

if %1 == -E  (
cmake.exe  %* 
) else (
cmake.exe -G "NMake Makefiles" -DCMAKE_LINK_FLAGS:implib=libluajit.lib -DLUALIB=libluajit %*
)

Add setlocal to make sure settings only apply to this session.
Add setlocal to make sure settings only apply to this session.
