Skip to content

Commit

Permalink
Make sure to set CMAKE_BUILD_TYPE=Release on non-debug builds. (bis)
Browse files Browse the repository at this point in the history
  • Loading branch information
rncbc committed Jan 18, 2023
1 parent f269661 commit 86e159c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,13 @@ set (PACKAGE_TARNAME "drumkv1")

set (CONFIG_BUILD_VERSION "${PACKAGE_VERSION}")

if (CONFIG_DEBUG)
set (CMAKE_BUILD_TYPE "Debug")
else ()
set (CMAKE_BUILD_TYPE "Release")
endif ()
if (CMAKE_BUILD_TYPE MATCHES "Debug")
set (CONFIG_DEBUG 1)
endif ()
if (CONFIG_DEBUG)
set (CONFIG_BUILD_TYPE "debug")
else ()
set (CONFIG_DEBUG 0)
set (CONFIG_BUILD_TYPE "release")
set (CMAKE_BUILD_TYPE "Release")
endif ()

set (CONFIG_PREFIX "${CMAKE_INSTALL_PREFIX}")
Expand Down

0 comments on commit 86e159c

Please sign in to comment.