Skip to content

Commit

Permalink
Properly set "Release" as the default/fallback build type.
Browse files Browse the repository at this point in the history
  • Loading branch information
AmineKhaldi authored and hoffmang9 committed Jul 27, 2021
1 parent f500295 commit be4432a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ set(CMAKE_C_STANDARD 99)

set(CMAKE_POSITION_INDEPENDENT_CODE ON)

IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE "RELEASE")
ENDIF()
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release"
CACHE STRING "Possible values are empty, Debug, Release, RelWithDebInfo, MinSizeRel, ..."
FORCE
)
endif()

project(BLS)

Expand Down

0 comments on commit be4432a

Please sign in to comment.