Skip to content

Commit

Permalink
libpqxx::pqxx ALIAS pqxx (#784)
Browse files Browse the repository at this point in the history
Allow CMake-based projects to add libpqxx (using `shared_link_libraries`) under the consistent name `libpqxx::pqxx`.
  • Loading branch information
alexv-ds committed Jan 19, 2024
1 parent d8b6b99 commit 6a9e330
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ endmacro()
file(GLOB CXX_SOURCES *.cxx)

add_library(pqxx ${CXX_SOURCES})
add_library(libpqxx::pqxx ALIAS pqxx)

get_target_property(pqxx_target_type pqxx TYPE)
if(pqxx_target_type STREQUAL "SHARED_LIBRARY")
Expand Down

0 comments on commit 6a9e330

Please sign in to comment.