diff --git a/projects/apple/OSX_EMsoft_SDK.cmake b/projects/apple/OSX_EMsoft_SDK.cmake index fe8979a..dc5db1b 100644 --- a/projects/apple/OSX_EMsoft_SDK.cmake +++ b/projects/apple/OSX_EMsoft_SDK.cmake @@ -4,7 +4,12 @@ if(NOT DEFINED EMsoft_FIRST_CONFIGURE) message(STATUS "* EMsoft First Configuration Run *") message(STATUS "* EMsoft_SDK Loading from ${CMAKE_CURRENT_LIST_DIR} *") message(STATUS "*******************************************************") - set(CMAKE_CXX_FLAGS "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas -mfpmath=sse" CACHE STRING "" FORCE) + cmake_host_system_information(RESULT SSE_SUPPORTED QUERY HAS_SSE) + if("${SSE_SUPPORTED}" EQUAL 1) + set(CMAKE_CXX_FLAGS "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas -mfpmath=sse" CACHE STRING "" FORCE) + else() + set(CMAKE_CXX_FLAGS "-Wmost -Wno-four-char-constants -Wno-unknown-pragmas" CACHE STRING "" FORCE) + endif() set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE STRING "" FORCE) # Set our Deployment Target to match Qt set(CMAKE_OSX_DEPLOYMENT_TARGET "@OSX_DEPLOYMENT_TARGET@" CACHE STRING "" FORCE)