Commit 5b9015a3 authored by botbw's avatar botbw Committed by LeiWang1999
Browse files

[Refactor] set default build type to release if not provided (#548)

parent 20810691
......@@ -5,7 +5,9 @@ cmake_minimum_required(VERSION 3.18)
project(TILE_LANG C CXX)
# Set default build type to Release if not provided
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type")
endif()
# Define a custom macro for globbing files with conditional CONFIGURE_DEPENDS
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.12.0")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment