MantisBT - CMake
View Issue Details
0016008CMakeModulespublic2016-03-06 10:262016-06-10 14:31
Egor P. 
Kitware Robot 
highminoralways
closedmoved 
WindowsWindows 1010
CMake 3.4.3 
 
0016008: FindPostgreSQL.cmake return relative lib path
Bottom of FindPostgreSQL.cmake:
---
if(PostgreSQL_FOUND)
  set(PostgreSQL_INCLUDE_DIRS ${PostgreSQL_INCLUDE_DIR} ${PostgreSQL_TYPE_INCLUDE_DIR} )
  set(PostgreSQL_LIBRARY_DIRS ${PostgreSQL_LIBRARY_DIR} )
  set(PostgreSQL_LIBRARIES ${PostgreSQL_LIBRARY_TO_FIND})
endif()
---

Value in ${PostgreSQL_LIBRARIES} is 'pq' or 'libpq' instead of absolute path.

And the page https://cmake.org/cmake/help/v3.0/command/link_directories.html [^] stated:
---
Note that this command is rarely necessary. Library locations returned by find_package() and find_library() are absolute paths.
---

So, the return value probably should be ${PostgreSQL_LIBRARY_DIRS}/${PostgreSQL_LIBRARIES}
No tags attached.
Issue History
2016-03-06 10:26Egor P.New Issue
2016-06-10 14:29Kitware RobotNote Added: 0042959
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0042959)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.