From 8b85ba871cf2c9c582031ed612228455e284dcb1 Mon Sep 17 00:00:00 2001
From: ilor <kailoran@gmail.com>
Date: Tue, 7 Jun 2011 13:20:16 +0200
Subject: [PATCH] do not link to corpus2 poliqarp library, assume plugins work

---
 CMakeScripts/FindCorpus2.cmake | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/CMakeScripts/FindCorpus2.cmake b/CMakeScripts/FindCorpus2.cmake
index 0905422..0ea7485 100644
--- a/CMakeScripts/FindCorpus2.cmake
+++ b/CMakeScripts/FindCorpus2.cmake
@@ -1,11 +1,8 @@
 FIND_PATH(Corpus2_INCLUDE_DIR token.h /usr/include/libcorpus2 /usr/local/include/libcorpus2 )
 
 FIND_LIBRARY(Corpus2_LIBRARY NAMES corpus2 PATH /usr/lib /usr/local/lib) 
-FIND_LIBRARY(Corpus2Poliqarp_LIBRARY NAMES corpus2poliqarp PATH /usr/lib /usr/local/lib) 
 MARK_AS_ADVANCED(Corpus2_LIBRARY)
 MARK_AS_ADVANCED(Corpus2_INCLUDE_DIR)
-MARK_AS_ADVANCED(Corpus2Poliqarp_LIBRARY)
-
 
 IF (Corpus2_INCLUDE_DIR AND Corpus2_LIBRARY)
    SET(Corpus2_FOUND TRUE)
@@ -15,9 +12,6 @@ ENDIF (Corpus2_INCLUDE_DIR AND Corpus2_LIBRARY)
 IF (Corpus2_FOUND)
    set(Corpus2_VERSION 0.0.0)
    set(Corpus2_LIBRARIES ${Corpus2_LIBRARY})
-   if(Corpus2Poliqarp_LIBRARY)
-      set(Corpus2_LIBRARIES ${Corpus2_LIBRARIES} ${Corpus2Poliqarp_LIBRARY})
-   endif(Corpus2Poliqarp_LIBRARY)
    FIND_FILE(_Corpus2_VERSION_FILE version.h ${Corpus2_INCLUDE_DIR})
    MARK_AS_ADVANCED(_Corpus2_VERSION_FILE)
    IF (_Corpus2_VERSION_FILE)
@@ -38,11 +32,7 @@ IF (Corpus2_FOUND)
       ENDIF (Corpus2_VERSION VERSION_LESS Corpus2_FIND_VERSION)
    ENDIF (Corpus2_FIND_VERSION)
    IF (NOT Corpus2_FIND_QUIETLY)
-      IF (NOT Corpus2Poliqarp_LIBRARY)
-         MESSAGE(STATUS "Found libcorpus2 ${Corpus2_VERSION}: ${Corpus2_LIBRARY}")
-      ELSE()
-         MESSAGE(STATUS "Found libcorpus2 ${Corpus2_VERSION}: ${Corpus2_LIBRARY} with PoliqarpLibrary ${Corpus2Poliqarp_LIBRARY}")
-      ENDIF(NOT Corpus2Poliqarp_LIBRARY)
+      MESSAGE(STATUS "Found libcorpus2 ${Corpus2_VERSION}: ${Corpus2_LIBRARY}")
    ENDIF (NOT Corpus2_FIND_QUIETLY)
 ELSE (Corpus2_FOUND)
    IF (Corpus2_FIND_REQUIRED)
-- 
GitLab