Skip to content

Commit

Permalink
chore(build): make cmake build type configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhaoyilunnn committed Oct 11, 2023
1 parent 44ac863 commit 890a064
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ cmake_minimum_required(VERSION 3.14...3.22)

project(qfvm LANGUAGES CXX C)

set (CMAKE_BUILD_TYPE Release)
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "Build type not set - defaulting to Release")
set(CMAKE_BUILD_TYPE Release)
endif()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CUDA_ARCHITECTURES 70;75;80;90)
if(SKBUILD)
Expand Down

0 comments on commit 890a064

Please sign in to comment.