View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0016008CMakeModulespublic2016-03-06 10:262016-06-10 14:31
ReporterEgor P. 
Assigned ToKitware Robot 
PriorityhighSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformWindowsOSWindows 10OS Version10
Product VersionCMake 3.4.3 
Target VersionFixed in Version 
Summary0016008: FindPostgreSQL.cmake return relative lib path
DescriptionBottom 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}
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0042959)
Kitware Robot (administrator)
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.

 Issue History
Date Modified Username Field Change
2016-03-06 10:26 Egor P. New Issue
2016-06-10 14:29 Kitware Robot Note Added: 0042959
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team