* Rely on CMAKE_HOST_WIN32 instead of CMAKE_HOST_SYSTEM_NAME which, sometimes, isn't set for some reason. Should fix the incorrect MINGW_TOOLCHAIN_PREFIX value issue.

svn path=/trunk/; revision=58292
This commit is contained in:
Amine Khaldi 2013-02-06 22:10:51 +00:00
parent 29c6f1ee4d
commit 735f00f3aa

View file

@ -7,7 +7,7 @@ endif()
if (NOT DEFINED MINGW_TOOLCHAIN_PREFIX)
if(ARCH STREQUAL "i386")
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
if(CMAKE_HOST_WIN32)
set(MINGW_TOOLCHAIN_PREFIX "" CACHE STRING "MinGW Toolchain Prefix")
else()
if(NOT $ENV{_ROSBE_VERSION} VERSION_LESS 2.1)