Skip to content

Commit

Permalink
remove SSE flag if not supported on OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdegraef committed Nov 18, 2022
1 parent ed489dc commit fda521b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion projects/apple/OSX_EMsoft_SDK.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fda521b

Please sign in to comment.