Fix compiling on OS X

This commit is contained in:
Phillip Stephens 2016-07-05 08:27:17 -07:00
parent 25da88baad
commit 8f82cdaaab
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ if(NOT MSVC)
set_source_files_properties(${SOURCES} PROPERTIES COMPILE_FLAGS "-msse4.1 -msse4.2 -std=c++14") set_source_files_properties(${SOURCES} PROPERTIES COMPILE_FLAGS "-msse4.1 -msse4.2 -std=c++14")
string(REPLACE "-flto" "" CUSTOM_FLAGS ${CMAKE_CXX_FLAGS}) string(REPLACE "-flto" "" CUSTOM_FLAGS ${CMAKE_CXX_FLAGS})
set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -O3 -msse3 -std=c++14") set(CUSTOM_FLAGS "${CUSTOM_FLAGS} -O3 -msse3 -std=c++14")
set(SSE_LEGACY_OBJ ${CMAKE_CURRENT_BINARY_DIR}/src/SSELegacy.o) set(SSE_LEGACY_OBJ ${CMAKE_CURRENT_BINARY_DIR}/SSELegacy.o)
separate_arguments(CUSTOM_FLAGS UNIX_COMMAND ${CUSTOM_FLAGS}) separate_arguments(CUSTOM_FLAGS UNIX_COMMAND ${CUSTOM_FLAGS})
add_custom_command( add_custom_command(
OUTPUT ${SSE_LEGACY_OBJ} OUTPUT ${SSE_LEGACY_OBJ}