mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Added some simple messaging when trying to build under Cygwin
This commit is contained in:
parent
3d41e28e6a
commit
95828a85a2
@ -13,6 +13,9 @@ endmacro()
|
|||||||
# determine whether to create a debug or release build
|
# determine whether to create a debug or release build
|
||||||
sfml_set_option(CMAKE_BUILD_TYPE Release STRING "Choose the type of build (Debug or Release)")
|
sfml_set_option(CMAKE_BUILD_TYPE Release STRING "Choose the type of build (Debug or Release)")
|
||||||
|
|
||||||
|
# Suppress Cygwin legacy warning
|
||||||
|
set(CMAKE_LEGACY_CYGWIN_WIN32 0)
|
||||||
|
|
||||||
# set Android specific options
|
# set Android specific options
|
||||||
|
|
||||||
# define the minimum API level to be used
|
# define the minimum API level to be used
|
||||||
@ -31,6 +34,8 @@ if(NOT ANDROID_ABI)
|
|||||||
set(ANDROID_ABI armeabi-v7a)
|
set(ANDROID_ABI armeabi-v7a)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
#end of Android specific options
|
||||||
|
|
||||||
# project name
|
# project name
|
||||||
project(SFML)
|
project(SFML)
|
||||||
|
|
||||||
|
@ -64,6 +64,10 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Android")
|
|||||||
|
|
||||||
# use the OpenGL ES implementation on Android
|
# use the OpenGL ES implementation on Android
|
||||||
set(OPENGL_ES 1)
|
set(OPENGL_ES 1)
|
||||||
|
# comparing CMAKE_SYSTEM_NAME with "CYGWIN" generates a false warning depending on the CMake version
|
||||||
|
# let's avoid it so the actual error is more visible
|
||||||
|
elseif(${CYGWIN})
|
||||||
|
message(FATAL_ERROR "Unfortunately SFML doesn't support Cygwin's 'hybrid' status between both Windows and Linux derivatives.\nIf you insist on using the GCC, please use a standalone build of MinGW without the Cygwin environment instead.")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Unsupported operating system or environment")
|
message(FATAL_ERROR "Unsupported operating system or environment")
|
||||||
return()
|
return()
|
||||||
|
Loading…
Reference in New Issue
Block a user