[Groonga-commit] groonga/groonga [master] cmake: clean KyTea not found error condition

Back to archive index

null+****@clear***** null+****@clear*****
2012年 4月 15日 (日) 19:29:34 JST


Kouhei Sutou	2012-04-15 19:29:34 +0900 (Sun, 15 Apr 2012)

  New Revision: fa7de306ed72c8137521cc6aea71313e73a12682

  Log:
    cmake: clean KyTea not found error condition

  Modified files:
    CMakeLists.txt

  Modified: CMakeLists.txt (+3 -3)
===================================================================
--- CMakeLists.txt    2012-04-15 18:43:58 +0900 (f1d8eaf)
+++ CMakeLists.txt    2012-04-15 19:29:34 +0900 (737e704)
@@ -151,11 +151,11 @@ if(NOT ${WITH_KYTEA} STREQUAL "no")
   if(KYTEA_FOUND)
     set(WITH_KYTEA TRUE)
   else()
+    if(${WITH_KYTEA} STREQUAL "yes")
+      message(FATAL_ERROR "No KyTea found")
+    endif()
     set(WITH_KYTEA FALSE)
   endif()
-  if(NOT WITH_KEYTEA AND ${WITH_KYTEA} STREQUAL "yes")
-    message(FATAL_ERROR "No KyTea found")
-  endif()
 else()
   set(WITH_KYTEA FALSE)
 endif()




Groonga-commit メーリングリストの案内
Back to archive index