mirror of
https://github.com/AxioDL/zeus.git
synced 2025-06-05 22:23:40 +00:00
Ensure CMAKE_OSX_SYSROOT is added for SSELegacy.cpp
This commit is contained in:
parent
8bcecd4cda
commit
328a1519a0
@ -29,6 +29,9 @@ set_source_files_properties(${SOURCES} PROPERTIES COMPILE_FLAGS "-msse4.1 -msse4
|
||||
if(CUSTOM_FLAGS)
|
||||
string(REPLACE "-flto=thin" "" CUSTOM_FLAGS ${CMAKE_CXX_FLAGS})
|
||||
endif(CUSTOM_FLAGS)
|
||||
if (CMAKE_OSX_SYSROOT)
|
||||
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -isysroot ${CMAKE_OSX_SYSROOT}")
|
||||
endif()
|
||||
if (CMAKE_OSX_DEPLOYMENT_TARGET AND NOT CMAKE_OSX_DEPLOYMENT_TARGET STREQUAL "")
|
||||
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -O3 -msse3 -std=c++14")
|
||||
else()
|
||||
|
Loading…
x
Reference in New Issue
Block a user