From f4f5c81a5620c2c2abc861939fdb1c7222a2401e Mon Sep 17 00:00:00 2001 From: eddiz <16883778+eddiz@users.noreply.github.com> Date: Tue, 21 Nov 2017 14:22:01 +0100 Subject: [PATCH] Update CMakeLists.txt updated compiler setting for extra speed-up as a follow-up of the pull discussion --- CMakeLists.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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.