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")
|
message(STATUS "Building benchmarks")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
|
add_definitions(-DNDEBUG)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
|
|
||||||
install(DIRECTORY approot DESTINATION share/lms)
|
install(DIRECTORY approot DESTINATION share/lms)
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ add_library(lmsdatabase SHARED
|
|||||||
impl/Utils.cpp
|
impl/Utils.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
if (CMAKE_BUILD_TYPE MATCHES "Debug")
|
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
target_sources(lmsdatabase PRIVATE impl/TransactionChecker.cpp)
|
target_sources(lmsdatabase PRIVATE impl/TransactionChecker.cpp)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user