Skip to content

Commit

Permalink
custom cmake build type, fix #20
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Jul 28, 2022
1 parent ee66eff commit 0c3e6a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ project(realcugan-ncnn-vulkan)

cmake_minimum_required(VERSION 3.9)

set(CMAKE_BUILD_TYPE Release)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE release CACHE STRING "Choose the type of build" FORCE)

This comment has been minimized.

Copy link
@davidebeatrici

davidebeatrici Jul 28, 2022

Is release instead of Release intended or a typo?

endif()

option(USE_SYSTEM_NCNN "build with system libncnn" OFF)
option(USE_SYSTEM_WEBP "build with system libwebp" OFF)
Expand Down

0 comments on commit 0c3e6a5

Please sign in to comment.