comparison Resources/CMake/PostgreSQLConfiguration.cmake @ 104:0a713ffdf842

fix build on Ubuntu 14.04
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Jan 2019 14:48:27 +0100
parents 9263b3de37ed
children 253e0fba5d2a
comparison
equal deleted inserted replaced
103:9263b3de37ed 104:0a713ffdf842
374 endif() 374 endif()
375 375
376 source_group(ThirdParty\\PostgreSQL REGULAR_EXPRESSION ${LIBPQ_SOURCES_DIR}/.*) 376 source_group(ThirdParty\\PostgreSQL REGULAR_EXPRESSION ${LIBPQ_SOURCES_DIR}/.*)
377 377
378 else() 378 else()
379 set(PostgreSQL_ADDITIONAL_VERSIONS
380 "11" "10" "9.6" "9.5" "9.4" "9.3" "9.2" "9.1" "9.0" "8.4" "8.3" "8.2" "8.1" "8.0")
381 if (NOT WIN32)
382 foreach (suffix ${PostgreSQL_ADDITIONAL_VERSIONS})
383 list(APPEND PostgreSQL_ADDITIONAL_SEARCH_PATHS
384 "/usr/include/postgresql/${suffix}"
385 "/usr/include/postgresql/${suffix}/server"
386 "/usr/local/include/postgresql/${suffix}"
387 )
388 endforeach()
389 endif()
390
379 include(FindPostgreSQL) 391 include(FindPostgreSQL)
380 include_directories( 392 include_directories(
381 ${PostgreSQL_INCLUDE_DIR} 393 ${PostgreSQL_INCLUDE_DIR}
382 ${PostgreSQL_TYPE_INCLUDE_DIR} 394 ${PostgreSQL_TYPE_INCLUDE_DIR}
383 ) 395 )