mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-14 23:25:56 +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 ()
|
endif ()
|
||||||
|
|
||||||
if(ENABLE_EXTRA_SPEED)
|
if(ENABLE_EXTRA_SPEED)
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
#enable parallel builds
|
#maximum optimization in Release mode
|
||||||
add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/Qpar>")
|
add_compile_options("$<$<CONFIG:RELEASE>:/Ox>")
|
||||||
#maximum optimization in Release mode
|
#add_compile_options("$<$<CONFIG:MinSizeRel>:/Ox>") #uncomment if consistent compiler settings are more important then binary size
|
||||||
add_compile_options("$<$<AND:$<CXX_COMPILER_ID:MSVC>,$<CONFIG:RELEASE>>:/Ox>")
|
#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()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Generate a version file containing repository info.
|
# Generate a version file containing repository info.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user