Author: hbelusca
Date: Sat Jun 22 11:11:35 2013
New Revision: 59284
URL: http://svn.reactos.org/svn/reactos?rev=59284&view=rev
Log:
[CMAKE]
As ThFabba said:
" - Properly escape exclamation mark in configure message " <-- It's for delayed variable expansions in CMD scripts !! That's the true reason !
See r59281.
(The r59283 was a commit I've done because, independently (i.e. without seeing r59281), it happened for some reason that this phenomenon didn't appear at home, and after updating my local copy and rerunning a configure.cmd, I saw ^ characters before the ! . In fact it was because I temporarily disabled the delayed expansion vars in my configure script).
Therefore revert my error, shame on me :)
Modified:
trunk/reactos/configure.cmd
Modified: trunk/reactos/configure.cmd
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/configure.cmd?rev=59284&r1…
==============================================================================
--- trunk/reactos/configure.cmd [iso-8859-1] (original)
+++ trunk/reactos/configure.cmd [iso-8859-1] Sat Jun 22 11:11:35 2013
@@ -186,7 +186,7 @@
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
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&r1…
==============================================================================
--- 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