mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-15 03:25:55 +08:00
Update CMakeLists.txt
updated compiler setting for extra speed-up as a follow-up of the pull discussion
This commit is contained in:
parent
890ecc27cb
commit
f4f5c81a56
@ -103,10 +103,10 @@ endif ()
|
|||||||
|
|
||||||
if(ENABLE_EXTRA_SPEED)
|
if(ENABLE_EXTRA_SPEED)
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
#enable parallel builds
|
|
||||||
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/Qpar>")
|
|
||||||
#maximum optimization in Release mode
|
#maximum optimization in Release mode
|
||||||
add_compile_options("$<$<AND:$<CXX_COMPILER_ID:MSVC>,$<CONFIG:RELEASE>>:/Ox>")
|
add_compile_options("$<$<CONFIG:RELEASE>:/Ox>")
|
||||||
|
#add_compile_options("$<$<CONFIG:MinSizeRel>:/Ox>") #uncomment if consistent compiler settings are more important then binary size
|
||||||
|
#add_compile_options("$<$<CONFIG:RelWithDebInfo>:/Ox>") #uncomment if consistent compiler settings are more important then binary size
|
||||||
else()
|
else()
|
||||||
add_compiler_flag_if_supported("-O3")
|
add_compiler_flag_if_supported("-O3")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user