diff options
author | Protonu Basu <protonu@fb.com> | 2019-05-30 22:14:24 +0300 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2019-05-30 22:24:16 +0300 |
commit | 85f4105cebfe538905dd167db1e2355f9637d8a1 (patch) | |
tree | d10b196178c43b35a1fa50ae7510cc67235fe6b8 | |
parent | 846785dc12bc540155d0f50268a394a0df3c3184 (diff) |
Adding -02 flag to the cmake build
Summary: Adding this flag makes up for perf diff seen with the cmake build system
Reviewed By: dskhudia
Differential Revision: D15377782
fbshipit-source-id: cf5308ff2b5d8d42ac57b555a94d845268a857c6
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 6008a34..80de824 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,11 @@ if(NOT COMPILER_SUPPORTS_AVX512) message(FATAL_ERROR "A compiler with AVX512 support is required.") endif() +#We should default to a Release build +if (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQUAL "") + set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE) +endif() + #check if compiler supports openmp find_package(OpenMP) if (OPENMP_FOUND) |