Author: sir_richard Date: Tue Jul 27 17:36:25 2010 New Revision: 48316
URL: http://svn.reactos.org/svn/reactos?rev=48316&view=rev Log: [CMAKE]: Fix compiler detection, we should check for CMAKE_HOST_SYSTEM_NAME, not CMAKE_SYSTEM_NAME, which is always Windows on a cross-build. [CMAKE]: PROCESSIR->PROCESSOR
Modified: branches/cmake-bringup/toolchain-mingw32.cmake
Modified: branches/cmake-bringup/toolchain-mingw32.cmake URL: http://svn.reactos.org/svn/reactos/branches/cmake-bringup/toolchain-mingw32.... ============================================================================== --- branches/cmake-bringup/toolchain-mingw32.cmake [iso-8859-1] (original) +++ branches/cmake-bringup/toolchain-mingw32.cmake [iso-8859-1] Tue Jul 27 17:36:25 2010 @@ -1,5 +1,5 @@ # Choose the right MinGW prefix -if (CMAKE_SYSTEM_NAME STREQUAL Windows) +if (CMAKE_HOST_SYSTEM_NAME MATCHES Windows) set(MINGW_PREFIX "") else() set(MINGW_PREFIX "mingw32-") @@ -7,7 +7,7 @@
# the name of the target operating system SET(CMAKE_SYSTEM_NAME Windows) -SET(CMAKE_SYSTEM_PROCESSIR i686) +SET(CMAKE_SYSTEM_PROCESSOR i686)
# which compilers to use for C and C++ SET(CMAKE_C_COMPILER ${MINGW_PREFIX}gcc)