diff options
-rw-r--r-- | Plugin.cmake | 2 | ||||
-rw-r--r-- | cmake/Modules/FindPQXX.cmake | 33 |
2 files changed, 1 insertions, 34 deletions
diff --git a/Plugin.cmake b/Plugin.cmake index b02b9b6..afbb480 100644 --- a/Plugin.cmake +++ b/Plugin.cmake @@ -19,7 +19,7 @@ if(PostgreSQL_FOUND) message(STATUS "Using PostgreSQL") list(APPEND CPPFILES "src/postgresql.cpp") list(APPEND INCLUDES ${PostgreSQL_INCLUDE_DIRS}) - list(APPEND LIBS ${PostgreSQL_LIBRARES}) + list(APPEND LIBS ${PostgreSQL_LIBRARIES}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBUILD_POSTGRES") endif() diff --git a/cmake/Modules/FindPQXX.cmake b/cmake/Modules/FindPQXX.cmake deleted file mode 100644 index 724079b..0000000 --- a/cmake/Modules/FindPQXX.cmake +++ /dev/null @@ -1,33 +0,0 @@ -# - Find libpqxx -# Find the libpqxx includes and client library -# This module defines -# PQXX_INCLUDE_DIRS -# PQXX_LIBRARIES -# PQXX_FOUND - -include (FindPackageHandleStandardArgs) - -find_path (PQXX_INCLUDE_DIRS - NAME - pqxx - PATHS - /usr/include - /usr/local/include - PATH_SUFFIXES - pqxx - DOC - "Directory for pqxx headers" -) - -find_library (PQXX_LIBRARIES - NAMES - pqxx -) - -FIND_PACKAGE_HANDLE_STANDARD_ARGS("PQXX" - "libpqxx couldn't be found" - PQXX_LIBRARIES - PQXX_INCLUDE_DIRS -) - -mark_as_advanced (PQXX_INCLUDE_DIR PQXX_LIBRARY)
\ No newline at end of file |