# HG changeset patch # User Sebastien Jodogne # Date 1432891965 -7200 # Node ID 31f2fc2d56eee64bc1cedb3e4a3983b88f9cf62c # Parent 70ee605a75226acdf22b984c7a669b2135137510 fix for visual studio diff -r 70ee605a7522 -r 31f2fc2d56ee Resources/CMake/PostgreSQLConfiguration.cmake --- a/Resources/CMake/PostgreSQLConfiguration.cmake Fri May 29 11:13:13 2015 +0200 +++ b/Resources/CMake/PostgreSQLConfiguration.cmake Fri May 29 11:32:45 2015 +0200 @@ -145,7 +145,6 @@ LIST(APPEND LIBPQ_SOURCES # libpgport C files that are needed if identified by configure - #${PQ_SOURCES_DIR}/src/interfaces/libpq/pthread-win32.c ${PQ_SOURCES_DIR}/src/interfaces/libpq/win32.c ${PQ_SOURCES_DIR}/src/port/crypt.c ${PQ_SOURCES_DIR}/src/port/inet_aton.c @@ -160,6 +159,10 @@ if (${CMAKE_COMPILER_IS_GNUCXX}) LIST(APPEND LIBPQ_SOURCES ${PQ_SOURCES_DIR}/src/port/win32error.c) endif() + + if (${MSVC}) + LIST(APPEND LIBPQ_SOURCES ${PQ_SOURCES_DIR}/src/interfaces/libpq/pthread-win32.c) + endif() endif() if (${CMAKE_COMPILER_IS_GNUCXX})