From 1157264940053a07c832ba018bc0d6bd6e5866ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Fri, 8 Jun 2018 19:31:57 +0200 Subject: =?UTF-8?q?Revert=20"Don=E2=80=99t=20add=5Flibrary(database)=20wit?= =?UTF-8?q?h=20an=20empty=20string,=20that=E2=80=99s=20not=20portable"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e3730c5a40a9d4a098ae9fb9a3bd867803007da1. --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7539886..1d57a0b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -218,6 +218,8 @@ if(SQLITE3_FOUND OR PQ_FOUND) include_directories(database ${PQ_INCLUDE_DIRS}) endif() set(USE_DATABASE TRUE) +else() + add_library(database OBJECT "") endif() # @@ -233,7 +235,8 @@ add_executable(${PROJECT_NAME} src/main.cpp $ $ $ - $) + $ + $) ## test_suite file(GLOB source_tests @@ -246,12 +249,9 @@ add_executable(test_suite ${source_tests} $ $ $ - $) + $ + $) set_target_properties(test_suite PROPERTIES EXCLUDE_FROM_ALL TRUE) -if(USE_DATABASE) - target_link_libraries(${PROJECT_NAME} $) - target_link_libraries(test_suite $) -endif() # ## Link the executables with their libraries -- cgit v1.2.3