diff options
author | louiz’ <louiz@louiz.org> | 2018-06-08 19:32:52 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-06-08 19:32:52 +0200 |
commit | 8afeb0ca92ff42227aee379c774fe9546a7461ba (patch) | |
tree | 8d115c5c38af0391504d6e51e9635f9ec8819fa3 | |
parent | 1157264940053a07c832ba018bc0d6bd6e5866ff (diff) | |
download | biboumi-test_cmake3_11_2.tar.gz biboumi-test_cmake3_11_2.tar.bz2 biboumi-test_cmake3_11_2.tar.xz biboumi-test_cmake3_11_2.zip |
Ok, dirty workaround for cmake < 3.11.2test_cmake3_11_2
-rw-r--r-- | CMakeLists.txt | 6 |
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() # |