Skip to content

Commit

Permalink
default to Release BUILD_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
urnathan committed Nov 28, 2021
1 parent 2acc1e1 commit 7c84543
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# Don't actually know the minimum version this'll work with, 3.18 is what I have
cmake_minimum_required (VERSION 3.18)

list (PREPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

if (NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
message (FATAL_ERROR "Not intended as a subcomponent")
endif ()
Expand All @@ -16,6 +14,9 @@ set (PROJECT_URL "https://github.com/urnathan/moke")
include (CheckLibraryExists)
include (CheckSymbolExists)

if (NOT CMAKE_BUILD_TYPE)
set (CMAKE_BUILD_TYPE Release)
endif ()
message (NOTICE "Build type:${CMAKE_BUILD_TYPE}")

# -g3 means we get macros
Expand Down

0 comments on commit 7c84543

Please sign in to comment.