Special thanks to the compiler tool vendors for making it so trivial and easy to check for the CPU
This commit is contained in:
parent
1cec474884
commit
4a168993dc
1 changed files with 6 additions and 0 deletions
|
|
@ -1240,6 +1240,12 @@ set_source_files_properties( common/engine/sc_man.cpp PROPERTIES OBJECT_DEPENDS
|
|||
set_source_files_properties( ${NOT_COMPILED_SOURCE_FILES} PROPERTIES HEADER_FILE_ONLY TRUE )
|
||||
set_source_files_properties( ${GAME_NONPCH_SOURCES} common/textures/hires/hqresize.cpp PROPERTIES SKIP_PRECOMPILE_HEADERS TRUE )
|
||||
|
||||
# Disable AVX2 for the entry point as we want to do a CPU check first
|
||||
if(MSVC)
|
||||
if(X64)
|
||||
set_source_files_properties( gamemain.cpp PROPERTIES COMPILE_FLAGS /arch:SSE2 )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS")
|
||||
# [BL] Solaris requires these to be explicitly linked.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue