Skip to content

Commit 28cd2e8

Browse files
ggerganovblackhole89
authored andcommitted
CMake build in Release by default (#75)
1 parent 9a002a3 commit 28cd2e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ set(CMAKE_CXX_STANDARD 20)
55
set(CMAKE_CXX_STANDARD_REQUIRED true)
66
set(CMAKE_C_STANDARD 11)
77

8+
if (NOT XCODE AND NOT MSVC AND NOT CMAKE_BUILD_TYPE)
9+
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
10+
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo")
11+
endif()
12+
813
option(LLAMA_ALL_WARNINGS "llama: enable all compiler warnings" ON)
914
option(LLAMA_ALL_WARNINGS_3RD_PARTY "llama: enable all compiler warnings in 3rd party libs" OFF)
1015

0 commit comments

Comments
 (0)