changeset 5:9e5e7a8314e0

fix postgresql for msvc
author jodogne
date Thu, 05 Jul 2018 17:12:12 +0200
parents 7409bb3ef0f5
children 5a97c68a7a51
files PostgreSQL/UnitTests/PostgreSQLTests.cpp Resources/CMake/PostgreSQLConfiguration.cmake
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/PostgreSQL/UnitTests/PostgreSQLTests.cpp	Thu Jul 05 16:53:56 2018 +0200
+++ b/PostgreSQL/UnitTests/PostgreSQLTests.cpp	Thu Jul 05 17:12:12 2018 +0200
@@ -44,7 +44,7 @@
 
 using namespace OrthancDatabases;
 
-extern const OrthancDatabases::PostgreSQLParameters  globalParameters_;
+extern OrthancDatabases::PostgreSQLParameters  globalParameters_;
 
 
 static OrthancDatabases::PostgreSQLDatabase* CreateTestDatabase(bool clearAll)
--- a/Resources/CMake/PostgreSQLConfiguration.cmake	Thu Jul 05 16:53:56 2018 +0200
+++ b/Resources/CMake/PostgreSQLConfiguration.cmake	Thu Jul 05 17:12:12 2018 +0200
@@ -306,6 +306,8 @@
       )      
 
   elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows")
+    link_libraries(secur32)
+    
     include_directories(
       ${LIBPQ_SOURCES_DIR}/src/include/port/win32
       ${LIBPQ_SOURCES_DIR}/src/port