mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-13 23:35:58 +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
@ -102,14 +102,14 @@ if (ENABLE_GOMA)
|
||||
endif ()
|
||||
|
||||
if(ENABLE_EXTRA_SPEED)
|
||||
if(MSVC)
|
||||
#enable parallel builds
|
||||
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/Qpar>")
|
||||
#maximum optimization in Release mode
|
||||
add_compile_options("$<$<AND:$<CXX_COMPILER_ID:MSVC>,$<CONFIG:RELEASE>>:/Ox>")
|
||||
else()
|
||||
add_compiler_flag_if_supported("-O3")
|
||||
endif()
|
||||
if(MSVC)
|
||||
#maximum optimization in Release mode
|
||||
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()
|
||||
add_compiler_flag_if_supported("-O3")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Generate a version file containing repository info.
|
||||
|
Loading…
x
Reference in New Issue
Block a user