Author: akhaldi
Date: Fri Dec 14 21:56:11 2012
New Revision: 57913
URL:
http://svn.reactos.org/svn/reactos?rev=57913&view=rev
Log:
[ROSBE/CMAKE]
* Set the correct prefix for the upcoming RosBE 2.1 toolchain.
Modified:
trunk/reactos/toolchain-gcc.cmake
Modified: trunk/reactos/toolchain-gcc.cmake
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/toolchain-gcc.cmake?rev=57…
==============================================================================
--- trunk/reactos/toolchain-gcc.cmake [iso-8859-1] (original)
+++ trunk/reactos/toolchain-gcc.cmake [iso-8859-1] Fri Dec 14 21:56:11 2012
@@ -10,8 +10,12 @@
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
set(MINGW_TOOLCHAIN_PREFIX "" CACHE STRING "MinGW Toolchain
Prefix")
else()
- set(MINGW_TOOLCHAIN_PREFIX "mingw32-" CACHE STRING "MinGW
Toolchain Prefix")
- endif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
+ if(NOT $ENV{_ROSBE_VERSION} VERSION_LESS 2.1)
+ set(MINGW_TOOLCHAIN_PREFIX "i686-w64-mingw32-" CACHE STRING
"MinGW-W64 Toolchain Prefix")
+ else()
+ set(MINGW_TOOLCHAIN_PREFIX "mingw32-" CACHE STRING "MinGW
Toolchain Prefix")
+ endif()
+ endif()
elseif(ARCH STREQUAL "amd64")
set(MINGW_TOOLCHAIN_PREFIX "x86_64-w64-mingw32-" CACHE STRING
"MinGW Toolchain Prefix")