Author: tthompson Date: Sat Sep 9 16:41:59 2017 New Revision: 75807
URL: http://svn.reactos.org/svn/reactos?rev=75807&view=rev Log: [CMAKE] Fix configure script issuing a warning on CMake parameters like -DFOO:BOOL=TRUE. Bug found by Thomas Faber.
Modified: branches/GSoC_2016/NTFS/configure.cmd
Modified: branches/GSoC_2016/NTFS/configure.cmd URL: http://svn.reactos.org/svn/reactos/branches/GSoC_2016/NTFS/configure.cmd?rev... ============================================================================== --- branches/GSoC_2016/NTFS/configure.cmd [iso-8859-1] (original) +++ branches/GSoC_2016/NTFS/configure.cmd [iso-8859-1] Sat Sep 9 16:41:59 2017 @@ -110,7 +110,14 @@ ) else if /I "%1" == "RTC" ( echo. && echo Warning: RTC switch is ignored outside of a Visual Studio environment. && echo. ) else if /I "%1" NEQ "" ( - echo. && echo Warning: Unrecognized switch "%1" && echo. + echo %1| find /I "-D" > NUL + if %ERRORLEVEL% == 0 ( + Rem User is passing a switch to CMake + Rem Ignore it, and ignore the next parameter that follows + Shift + ) else ( + echo. && echo Warning: Unrecognized switch "%1" && echo. + ) ) else ( goto continue ) @@ -176,7 +183,14 @@ echo Runtime checks enabled set VS_RUNTIME_CHECKS=1 ) else if /I "%1" NEQ "" ( - echo. && echo Warning: Unrecognized switch "%1" && echo. + echo %1| find /I "-D" > NUL + if %ERRORLEVEL% == 0 ( + Rem User is passing a switch to CMake + Rem Ignore it, and ignore the next parameter that follows + Shift + ) else ( + echo. && echo Warning: Unrecognized switch "%1" && echo. + ) ) else ( goto continue )