Skip to content

Commit

Permalink
Merge branch 'feature/default_build_release' into feature/improve_loc…
Browse files Browse the repository at this point in the history
…al_mapping
victorreijgwart committed Dec 12, 2024
2 parents 1092dc2 + fff8b77 commit 7bf1525
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions library/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -12,6 +12,16 @@ option(USE_SYSTEM_EIGEN "Use system pre-installed Eigen" ON)
option(USE_SYSTEM_GLOG "Use system pre-installed glog" ON)
option(USE_SYSTEM_BOOST "Use system pre-installed Boost" ON)

# Build in Release mode by default
if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
message(STATUS "Setting build type to Release as none was specified.")
set(CMAKE_BUILD_TYPE Release CACHE
STRING "Choose the type of build." FORCE)
# Set the possible values of build type for cmake-gui
set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS
"Debug" "Release" "MinSizeRel" "RelWithDebInfo")
endif ()

# CMake helpers and general wavemap tooling (e.g. to run clang-tidy CI)
include(GNUInstallDirs)
include(cmake/wavemap-extras.cmake)

0 comments on commit 7bf1525

Please sign in to comment.