From 1b40e87a3f54a70d4994262dd7fad4297caaeca3 Mon Sep 17 00:00:00 2001 From: Richard Knight Date: Fri, 9 Jul 2021 17:35:01 +0100 Subject: moved from libpqxx to libpq --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 43c251d..fb38a90 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,7 @@ set(BUILDING_CSOUND_PLUGINS ON) # ---------------------------------------------- include(FindCsound) -include(FindPQXX) +include(FindPostgreSQL) include(FindSqlite3) include(FindMySQL) @@ -154,7 +154,7 @@ if(NOT CSOUND_FOUND) message(FATAL_ERROR "Csound installation not found") endif() -if(NOT PQXX_FOUND AND NOT SQLITE3_FOUND AND NOT MYSQLCONNECTORCPP_FOUND) +if(NOT PostgreSQL_FOUND AND NOT SQLITE3_FOUND AND NOT MYSQLCONNECTORCPP_FOUND) message(FATAL_ERROR "No database libraries could be found") endif() @@ -168,7 +168,7 @@ endif() set(CPPFILES src/opcodes.cpp src/connection.cpp) -if (PQXX_FOUND) +if (PostgreSQL_FOUND) message(STATUS "Using PostgreSQL") list(APPEND CPPFILES "src/postgresql.cpp") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DBUILD_POSTGRES") @@ -192,9 +192,9 @@ endif() include_directories(${CSOUND_INCLUDE_DIRS}) include_directories(include) -if (PQXX_FOUND) - link_libraries(${PQXX_LIBRARIES}) - include_directories(${PQXX_INCLUDE_DIRECTORIES}) +if (PostgreSQL_FOUND) + link_libraries(${PostgreSQL_LIBRARIES}) + include_directories(${PostgreSQL_INCLUDE_DIRS}) endif() if (SQLITE3_FOUND) -- cgit v1.2.3