Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LidarView
LidarView-Superbuild
Commits
7630d3bc
Commit
7630d3bc
authored
Nov 03, 2016
by
Bastien Jacquet
Browse files
Warn developers when no CMAKE_BUILD_TYPE is set, and default to RelWithDebInfo
parent
59d652d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
7630d3bc
...
...
@@ -7,6 +7,16 @@ set (SuperBuild_BINARY_DIR ${VeloViewSuperBuild_BINARY_DIR})
include
(
CMakeDependentOption
)
#------------------------------------------------------------------------------
# Set a default build type if none was specified
if
(
NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES
)
message
(
STATUS
"Setting build type to 'RelWithDebInfo' as none was specified."
)
set
(
CMAKE_BUILD_TYPE RelWithDebInfo 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
()
#-----------------------------------------------------------------------------
# Collect information about the build platform.
include
(
CheckTypeSize
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment