aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2023-07-16 21:43:26 +0200
committerGitHub <noreply@github.com>2023-07-16 21:43:26 +0200
commit24248c7419e9b857f1dbe3e60592714b33cb5b78 (patch)
treeb8e86dd65dac6865dee0b8a4b78a259a5750b77c
parent0309af134ef01e0074057e0580c8155028998fcf (diff)
downloadNorthstarLauncher-24248c7419e9b857f1dbe3e60592714b33cb5b78.tar.gz
NorthstarLauncher-24248c7419e9b857f1dbe3e60592714b33cb5b78.zip
CMAKE: set build type if not previously set, turn bin dir message into status (#497)
-rw-r--r--CMakeLists.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 18030b4a..4721a124 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,11 @@ cmake_minimum_required(VERSION 3.15)
project(Northstar CXX ASM_MASM)
+if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE "Release" CACHE STRING
+ "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel." FORCE)
+endif()
+
# Language specs
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_C_STANDARD 17)
@@ -16,7 +21,8 @@ set(NS_BINARY_DIR ${CMAKE_BINARY_DIR}/game)
# and then link binaries in ${CMAKE_BINARY_DIR}/game. This means you can copy your
# game into ${CMAKE_BINARY_DIR}/game without it being cluttered up by cmake files.
-message("NS: Building to ${NS_BINARY_DIR}")
+message(STATUS "NS: Building to ${NS_BINARY_DIR}")
+
# Targets
add_subdirectory(loader_wsock32_proxy)