Skip to content

Commit

Permalink
Support compiling with CMAKE_BUILD_TYPE set to None (#405)
Browse files Browse the repository at this point in the history
Debian defaults to setting CMAKE_BUILD_TYPE to None and setting CFLAGS
and alike to Debian standards.
  • Loading branch information
jspricke authored and damonkohler committed Jul 17, 2017
1 parent 10a19d0 commit e345ae8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmake/functions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ macro(google_initialize_cartographer_project)
"call CMake with -DFORCE_DEBUG_BUILD=True"
)
endif()
# Support for Debian packaging CMAKE_BUILD_TYPE
elseif(CMAKE_BUILD_TYPE STREQUAL "None")
message(WARNING "Building with CMAKE_BUILD_TYPE None, "
"please make sure you have set CFLAGS and CXXFLAGS according to your needs.")
else()
message(FATAL_ERROR "Unknown CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
endif()
Expand Down

0 comments on commit e345ae8

Please sign in to comment.