Fixed build when CMAKE_BUILD_TYPE is set to None

This commit is contained in:
emeric
2024-03-19 22:49:50 +01:00
parent 7315063a30
commit 717f71254e
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ add_library(lmsdatabase SHARED
impl/Utils.cpp
)
if (CMAKE_BUILD_TYPE MATCHES "Debug")
target_sources(lmsdatabase PRIVATE impl/TransactionChecker.cpp)
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
target_sources(lmsdatabase PRIVATE impl/TransactionChecker.cpp)
endif()
target_include_directories(lmsdatabase INTERFACE