mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-09-13 06:03:13 +08:00
Merge pull request #301 from eddiz/master
Optional Compiler Optimization
This commit is contained in:
commit
451b56f4c9
@ -101,6 +101,15 @@ if (ENABLE_GOMA)
|
|||||||
set_compiler_launcher(ENABLE_GOMA gomacc)
|
set_compiler_launcher(ENABLE_GOMA gomacc)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
if(ENABLE_EXTRA_SPEED)
|
||||||
|
if(MSVC)
|
||||||
|
# Maximum optimization in Release mode.
|
||||||
|
add_compile_options("$<$<CONFIG:RELEASE>:/Ox>")
|
||||||
|
else()
|
||||||
|
add_compiler_flag_if_supported("-O3")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# Generate a version file containing repository info.
|
# Generate a version file containing repository info.
|
||||||
include(FindGit)
|
include(FindGit)
|
||||||
find_package(Git)
|
find_package(Git)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user