Skip to content

Commit

Permalink
user WINDOWS_BITS for linking pq and python dlls
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Jan 2, 2018
1 parent bc0c021 commit 1b803b6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions CMakeLists.txt
Expand Up @@ -85,18 +85,12 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
)
set(HAVE_WIN32 1)

link_directories(
#/usr/x86_64-w64-mingw32/sys-root/mingw/lib
#${CMAKE_SOURCE_DIR}/src/win32/cats/pgsql/lib/64
#${CMAKE_SOURCE_DIR}/src/win32/plugins/python/lib/64
)

set(WINDOWS_LIBRARIES ws2_32)

SET(PYTHON_LIBRARIES ${CMAKE_SOURCE_DIR}/src/win32/plugins/python/lib/64/python27.dll )
SET(PYTHON_LIBRARIES ${CMAKE_SOURCE_DIR}/src/win32/plugins/python/lib/${WINDOWS_BITS}/python27.dll )
SET(PYTHON_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/src/win32/plugins/python/include)

SET(PostgreSQL_LIBRARY ${CMAKE_SOURCE_DIR}/src/win32/cats/pgsql/lib/64/libpq.dll)
SET(PostgreSQL_LIBRARY ${CMAKE_SOURCE_DIR}/src/win32/cats/pgsql/lib/${WINDOWS_BITS}/libpq.dll)
SET(PostgreSQL_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/src/win32/cats/pgsql/include)
SET(PostgreSQL_TYPE_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/src/win32/plugins/python/include)

Expand Down

0 comments on commit 1b803b6

Please sign in to comment.