diff --git a/CMakeLists.txt b/CMakeLists.txt index d25623c..d3bd3cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -102,14 +102,14 @@ if (ENABLE_GOMA) endif () if(ENABLE_EXTRA_SPEED) - if(MSVC) - #enable parallel builds - add_compile_options("$<$:/Qpar>") - #maximum optimization in Release mode - add_compile_options("$<$,$>:/Ox>") - else() - add_compiler_flag_if_supported("-O3") - endif() + if(MSVC) + #maximum optimization in Release mode + add_compile_options("$<$:/Ox>") + #add_compile_options("$<$:/Ox>") #uncomment if consistent compiler settings are more important then binary size + #add_compile_options("$<$:/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.