Merge pull request #1309 from heinrich5991/pr_ddnet_cmake_default_buildtype

Debug mode should only be default if DEV is set, release otherwise
This commit is contained in:
Dennis Felsing 2018-09-30 19:37:55 +02:00 committed by GitHub
commit 7fefcb58b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ option(DEV "Don't generate stuff necessary for packaging" OFF)
# Set the default build type to Release
if(NOT(CMAKE_BUILD_TYPE))
if(DEV)
if(NOT(DEV))
set(CMAKE_BUILD_TYPE Release)
else()
set(CMAKE_BUILD_TYPE Debug)