message ( STATUS "Build Type: ${CMAKE_BUILD_TYPE}" )
if ( ENABLE_OPENGL )
message ( STATUS "Building with OpenGL support." )
endif ( )
if ( ENABLE_VULKAN )
message ( STATUS "Building with Vulkan support." )
endif ( )
if ( ENABLE_X11 )
message ( STATUS "Building with X11 support." )
endif ( )
if ( ENABLE_WAYLAND )
message ( STATUS "Building with Wayland support." )
endif ( )
if ( BUILD_QT_FRONTEND )
message ( STATUS "Building Qt frontend." )
endif ( )
if ( BUILD_NOGUI_FRONTEND )
message ( STATUS "Building NoGUI frontend." )
endif ( )
if ( BUILD_REGTEST )
message ( STATUS "Building RegTest frontend." )
endif ( )
if ( BUILD_TESTS )
message ( STATUS "Building unit tests." )
endif ( )
if ( ALLOW_INSTALL )
message ( STATUS "Creating self-contained install at ${CMAKE_INSTALL_PREFIX}" )
# Stop users being silly.
if ( "${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr" )
message ( FATAL_ERROR "You are trying to install DuckStation into a system directory, this is not supported. Please use a different CMAKE_INSTALL_PREFIX." )
endif ( )
endif ( )
# Refuse to build in Arch package environments. My license does not allow for packages, and I'm sick of
# dealing with people complaining about things broken by packagers. This is why we can't have nice things.
if ( DEFINED ENV{DEBUGINFOD_URLS} )
if ( $ENV{ DEBUGINFOD_URLS } MATCHES ".*archlinux.*" )
message ( FATAL_ERROR "Unsupported environment." )
endif ( )
endif ( )
if ( DEFINED HOST_MIN_PAGE_SIZE AND DEFINED HOST_MAX_PAGE_SIZE )
message ( STATUS "Building with a dynamic page size of ${HOST_MIN_PAGE_SIZE} - ${HOST_MAX_PAGE_SIZE} bytes." )
elseif ( DEFINED HOST_PAGE_SIZE )
message ( STATUS "Building with detected page size of ${HOST_PAGE_SIZE}" )
endif ( )
if ( DEFINED HOST_CACHE_LINE_SIZE )
message ( STATUS "Building with detected cache line size of ${HOST_CACHE_LINE_SIZE}" )
endif ( )
if ( NOT IS_SUPPORTED_COMPILER )
message ( WARNING " *************** UNSUPPORTED CONFIGURATION ***************
Y o u a r e n o t c o m p i l i n g D u c k S t a t i o n w i t h a s u p p o r t e d c o m p i l e r .
I t m a y n o t e v e n b u i l d s u c c e s s f u l l y .
D u c k S t a t i o n o n l y s u p p o r t s t h e C l a n g a n d MSVC c o m p i l e r s .
N o s u p p o r t w i l l b e p r o v i d e d , c o n t i n u e a t y o u r o w n r i s k .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * " )
endif ( )
if ( WIN32 )
message ( WARNING " *************** UNSUPPORTED CONFIGURATION ***************
Y o u a r e c o m p i l i n g D u c k S t a t i o n w i t h C M a k e o n W i n d o w s .
I t m a y n o t e v e n b u i l d s u c c e s s f u l l y .
D u c k S t a t i o n o n l y s u p p o r t s M S B u i l d o n W i n d o w s .
N o s u p p o r t w i l l b e p r o v i d e d , c o n t i n u e a t y o u r o w n r i s k .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * " )
endif ( )
if ( CPU_ARCH_X64 AND DISABLE_SSE4 )
message ( WARNING " *********************** WARNING ***********************
S S E 4 i n s t r u c t i o n s a r e d i s a b l e d . T h i s w i l l r e s u l t i n
r e d u c e d p e r f o r m a n c e . Y o u s h o u l d n o t e n a b l e t h i s o p t i o n
u n l e s s y o u h a v e a p r e - 2 0 0 8 C P U .
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * " )
endif ( )