From 10f2810c6b7e4f18c8bbd5b2b95285f45d0e9e34 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Tue, 29 Oct 2013 11:45:31 -0700 Subject: [PATCH] Formalize mingw linking line in CMake file --- pgsql/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pgsql/CMakeLists.txt b/pgsql/CMakeLists.txt index e7dacd0..a564f1f 100644 --- a/pgsql/CMakeLists.txt +++ b/pgsql/CMakeLists.txt @@ -44,6 +44,9 @@ if (LIBGHT_FOUND) target_link_libraries (pointcloud ght) endif (LIBGHT_FOUND) +if (MINGW) + target_link_libraries (pointcloud postgres) +endif (MINGW) install ( TARGETS pointcloud