Skip to content

Commit

Permalink
Fix usage of CMAKE_BUILD_TYPE setting
Browse files Browse the repository at this point in the history
The build type was set to Release in the top level cmake file.
This was a rather confusing behaviour, as one would expect to
be able to easily debug the code after using `cmake -DCMAKE_BUILD_TYPE=Debug`.
  • Loading branch information
GBuella committed May 19, 2017
1 parent 381f03d commit 31d4a59
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
cmake_minimum_required(VERSION 2.8.7)

project(bcc)
set(CMAKE_BUILD_TYPE Release)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()

enable_testing()

Expand Down

0 comments on commit 31d4a59

Please sign in to comment.