summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1d57a0b..1fe065f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -219,7 +219,11 @@ if(SQLITE3_FOUND OR PQ_FOUND)
endif()
set(USE_DATABASE TRUE)
else()
- add_library(database OBJECT "")
+ if(${CMAKE_VERSION} VERSION_LESS "3.11.2")
+ add_library(database OBJECT "")
+ else()
+ add_library(database OBJECT)
+ endif()
endif()
#