From 4c88d5d4b7506ad9206af5b7c67548b9ef04d261 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Sat, 10 Nov 2018 13:25:15 -0800 Subject: [PATCH] Build in RelWithDebInfo by default --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cdaaeb4b..45682b44 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,9 +37,9 @@ if (MSVC) option(DOKAN_PATH "Location of the Dokan library, e.g. C:\\Program Files\\Dokan\\DokanLibrary-1.1.0" "") endif() -# Default value is to build in release mode +# Default value is to build in release mode but with debug symbols if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE Release CACHE INTERNAL "CMAKE_BUILD_TYPE") + set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE INTERNAL "CMAKE_BUILD_TYPE") endif(NOT CMAKE_BUILD_TYPE) # The MSVC version on AppVeyor CI needs this