Fixed build when CMAKE_BUILD_TYPE is set to None
This commit is contained in:
@@ -82,6 +82,10 @@ if (BUILD_BENCHMARKS)
|
||||
message(STATUS "Building benchmarks")
|
||||
endif()
|
||||
|
||||
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
add_definitions(-DNDEBUG)
|
||||
endif()
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
install(DIRECTORY approot DESTINATION share/lms)
|
||||
|
||||
Reference in New Issue
Block a user