Skip to content

Commit

Permalink
default CMAKE_BUILD_TYPE modified to Release
Browse files Browse the repository at this point in the history
  • Loading branch information
hashimom committed Mar 28, 2015
1 parent 722ce06 commit 3311fff
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@ SET(IZUMO_ERRDIR "${CMAKE_INSTALL_PREFIX}/share/izumo/log")
SET(IR_UNIX_DIR "/tmp/.iroha_unix")
SET(IR_UNIX_SOCKNAME "IROHA")

if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
#select the release build type by default to get optimization flags
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
message(STATUS "Build type not specified: defaulting to release.")
endif(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "")

INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/include/RK)
Expand Down

0 comments on commit 3311fff

Please sign in to comment.