Skip to content
Snippets Groups Projects
Commit 2db39ea1 authored by bigbes's avatar bigbes
Browse files

Fix for Broken builds on CentOS-5 i386

parent 4ee17d3b
No related branches found
No related tags found
No related merge requests found
......@@ -85,6 +85,10 @@ foreach (root ${PostgreSQL_KNOWN_ROOTS} )
endforeach()
endforeach()
foreach (version ${PostgreSQL_KNOWN_VERSIONS} )
list(APPEND PostgreSQL_ROOT_DIRECTORIES "/usr/pgsql-${version}" )
endforeach()
#
# Look for an installation.
#
......
......@@ -2,6 +2,7 @@ find_optional_package(PostgreSQL)
if (PostgreSQL_FOUND)
include_directories(${PostgreSQL_INCLUDE_DIRS})
link_directories(${PostgreSQL_LIBRARY_DIRS})
add_library(pg SHARED pg.cc)
target_link_libraries(pg ${PostgreSQL_LIBRARIES} -rdynamic)
set_target_properties(pg PROPERTIES PREFIX "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment