Skip to content

Commit

Permalink
cmake: explicitly default to release build
Browse files Browse the repository at this point in the history
  • Loading branch information
phandasm committed Aug 4, 2023
1 parent 4294d37 commit 93c2435
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Expand Up @@ -10,6 +10,11 @@ project(waveform)

set(WAVEFORM_VERSION "1.7.0")

# default to release build
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE)
endif()

# set default install prefix to OBS plugin path on linux and MacOS
# otherwise set it to the windows installer source folder
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
Expand Down

0 comments on commit 93c2435

Please sign in to comment.