Author: tfaber
Date: Sat Jun 22 08:05:50 2013
New Revision: 59281
URL:
http://svn.reactos.org/svn/reactos?rev=59281&view=rev
Log:
[CMAKE]
- configure no longer defaults to nmake, don't confuse the user
- Properly escape exclamation mark in configure message
Modified:
trunk/reactos/configure.cmd
Modified: trunk/reactos/configure.cmd
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/configure.cmd?rev=59281&am…
==============================================================================
--- trunk/reactos/configure.cmd [iso-8859-1] (original)
+++ trunk/reactos/configure.cmd [iso-8859-1] Sat Jun 22 08:05:50 2013
@@ -21,7 +21,7 @@
:: Get the source root directory
set REACTOS_SOURCE_DIR=%~dp0
-set USE_NMAKE=0
+set USE_VSCMD=0
:: Detect presence of cmake
cmd /c cmake --version 2>&1 | find "cmake version" > NUL || goto
cmake_notfound
@@ -49,7 +49,7 @@
) else if "%_BUILDARCH%" == "AMD64" (
set ARCH=amd64
)
- set USE_NMAKE=1
+ set USE_VSCMD=1
set USE_WDK_HEADERS=0
) else if defined VCINSTALLDIR (
@@ -96,8 +96,8 @@
)
)
) else (
- set USE_NMAKE=1
- echo This script defaults to nmake. To use Visual Studio GUI specify
"VSSolution" as a parameter.
+ set USE_VSCMD=1
+ echo This script defaults to Ninja. To use Visual Studio GUI specify
"VSSolution" as a parameter.
)
) else if defined sdkdir (
@@ -109,7 +109,7 @@
)
set BUILD_ENVIRONMENT=SDK
- set USE_NMAKE=1
+ set USE_VSCMD=1
) else (
echo Error: Unable to detect build environment. Configure script failure.
@@ -122,8 +122,8 @@
exit /b
)
-:: Detect nmake generator
-if %USE_NMAKE% == 1 (
+:: Detect VS command line generator
+if %USE_VSCMD% == 1 (
if /I "%1" == "CodeBlocks" (
set CMAKE_GENERATOR="CodeBlocks - NMake Makefiles"
) else if /I "%1" == "Eclipse" (
@@ -186,9 +186,9 @@
cd..
-echo Configure script complete! Enter directories and execute appropriate build
commands(ex: ninja, make, nmake, etc...).
+echo Configure script complete^^! Enter directories and execute appropriate build
commands (ex: ninja, make, nmake, etc...).
exit /b
:cmake_notfound
- echo Unable to find cmake, if it is installed, check your PATH variable.
- exit /b
+echo Unable to find cmake, if it is installed, check your PATH variable.
+exit /b