Fix a bug get_target_property(PostgreSQL_INCLUDE_DIRS PostgreSQL::PostgreSQL) does not working (https://github.com/jtv/libpqxx/pull/981) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 174f1414..d5f7be08 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -18,7 +18,6 @@ endif() # happens to contain autoconf-generated config headers, we should still prefer # the ones in the binary tree. macro(library_target_setup tgt) - get_target_property (PostgreSQL_INCLUDE_DIRS PostgreSQL::PostgreSQL INTERFACE_INCLUDE_DIRECTORIES) target_include_directories(${tgt} PUBLIC $